Skip to content

Commit b79465f

Browse files
committed
remove docs and docs command
Signed-off-by: Michael Shen <[email protected]>
1 parent dab896d commit b79465f

File tree

91 files changed

+3
-3735
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+3
-3735
lines changed

.dockerignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
docs/
21
README.md
32
LICENSE
43
bin/

.goreleaser.yml

-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ changelog:
4141
sort: asc
4242
filters:
4343
exclude:
44-
- '^docs:'
4544
- '^test:'
4645

4746
release:

Makefile

+1-6
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ SHELL := /bin/bash
1111

1212
all: format mod build test lint
1313

14-
format: vet mod fmt mockgen ci-build docs
14+
format: vet mod fmt mockgen ci-build
1515

1616
fmt:
1717
@echo "gofmt"
@@ -51,11 +51,6 @@ mod:
5151
go mod tidy
5252
@git diff --exit-code -- go.mod
5353

54-
.PHONY: docs
55-
docs:
56-
./dist/osdctl_$(shell uname | tr [:upper:] [:lower:])_amd64_v1/osdctl docs ./docs/command
57-
@git diff --exit-code -- ./docs/command/
58-
5954
mockgen: ensure-mockgen
6055
go generate ${BUILDFLAGS} ./...
6156
@git diff --exit-code -- ./pkg/provider/aws/mock

README.md

+1-5
Original file line numberDiff line numberDiff line change
@@ -68,16 +68,12 @@ make test
6868

6969
A config file is created at ~/.config/osdctl if it does not already exist when running any command.
7070
The config file is yaml formatted.
71-
As as example:
71+
As an example:
7272
```
7373
key1: value1
7474
key2: value2
7575
```
7676

77-
## Usage
78-
79-
For the detailed usage of each command, please refer to [here](./docs/command).
80-
8177
### AWS Account CR reset
8278

8379
`reset` command resets the Account CR status and cleans up related secrets.

cmd/cmd.go

+1-4
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,6 @@ func NewCmdRoot(streams genericclioptions.IOStreams) *cobra.Command {
9494
rootCmd.AddCommand(sts.NewCmdSts(streams, kubeFlags, kubeClient))
9595
rootCmd.AddCommand(promote.NewCmdPromote(kubeFlags, globalOpts))
9696

97-
// add docs command
98-
rootCmd.AddCommand(newCmdDocs(streams))
99-
10097
// add completion command
10198
rootCmd.AddCommand(newCmdCompletion(streams))
10299

@@ -139,7 +136,7 @@ func canCommandSkipVersionCheck(commandName string) bool {
139136

140137
// Returns allowlist of commands that can skip version check
141138
func getSkipVersionCommands() []string {
142-
return []string{"docs", "upgrade", "version"}
139+
return []string{"upgrade", "version"}
143140
}
144141

145142
func versionCheck() {

cmd/docs.go

-30
This file was deleted.

docs/command/osdctl.md

-49
This file was deleted.

docs/command/osdctl_aao.md

-36
This file was deleted.

docs/command/osdctl_aao_pool.md

-39
This file was deleted.

docs/command/osdctl_account.md

-47
This file was deleted.

docs/command/osdctl_account_clean-velero-snapshots.md

-44
This file was deleted.

docs/command/osdctl_account_cli.md

-44
This file was deleted.

0 commit comments

Comments
 (0)