Merge pull request #2775 from thaJeztah/notabs

Replace tab with spaces in usage output
This commit is contained in:
Tibor Vass 2020-10-22 12:40:42 -07:00 committed by GitHub
commit 7fedb0e54f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
32 changed files with 34 additions and 34 deletions

View File

@ -296,8 +296,8 @@ func invalidPluginReason(cmd *cobra.Command) string {
var usageTemplate = `Usage:
{{- if not .HasSubCommands}} {{.UseLine}}{{end}}
{{- if .HasSubCommands}} {{ .CommandPath}}{{- if .HasAvailableFlags}} [OPTIONS]{{end}} COMMAND{{end}}
{{- if not .HasSubCommands}} {{.UseLine}}{{end}}
{{- if .HasSubCommands}} {{ .CommandPath}}{{- if .HasAvailableFlags}} [OPTIONS]{{end}} COMMAND{{end}}
{{if ne .Long ""}}{{ .Long | trim }}{{ else }}{{ .Short | trim }}{{end}}
{{- if isExperimental .}}

View File

@ -7,7 +7,7 @@ keywords: container, prune, delete, remove
# container prune
```markdown
Usage: docker container prune [OPTIONS]
Usage: docker container prune [OPTIONS]
Remove all stopped containers

View File

@ -7,7 +7,7 @@ keywords: "image, prune, delete, remove"
# image prune
```markdown
Usage: docker image prune [OPTIONS]
Usage: docker image prune [OPTIONS]
Remove unused images

View File

@ -7,7 +7,7 @@ keywords: "network, create"
# network create
```markdown
Usage: docker network create [OPTIONS] NETWORK
Usage: docker network create [OPTIONS] NETWORK
Create a network

View File

@ -7,7 +7,7 @@ keywords: "network, prune, delete"
# network prune
```markdown
Usage: docker network prune [OPTIONS]
Usage: docker network prune [OPTIONS]
Remove all unused networks

View File

@ -7,7 +7,7 @@ keywords: "node, remove"
# node rm
```markdown
Usage: docker node rm [OPTIONS] NODE [NODE...]
Usage: docker node rm [OPTIONS] NODE [NODE...]
Remove one or more nodes from the swarm

View File

@ -7,7 +7,7 @@ keywords: "plugin, inspect"
# plugin inspect
```markdown
Usage: docker plugin inspect [OPTIONS] PLUGIN [PLUGIN...]
Usage: docker plugin inspect [OPTIONS] PLUGIN [PLUGIN...]
Display detailed information on one or more plugins

View File

@ -5,7 +5,7 @@ keywords: "plugin, push"
---
```markdown
Usage: docker plugin push [OPTIONS] PLUGIN[:TAG]
Usage: docker plugin push [OPTIONS] PLUGIN[:TAG]
Push a plugin to a registry

View File

@ -7,7 +7,7 @@ keywords: ["secret, create"]
# secret create
```Markdown
Usage: docker secret create [OPTIONS] SECRET [file|-]
Usage: docker secret create [OPTIONS] SECRET [file|-]
Create a secret from a file or STDIN as content

View File

@ -7,7 +7,7 @@ keywords: ["secret, ls"]
# secret ls
```Markdown
Usage: docker secret ls [OPTIONS]
Usage: docker secret ls [OPTIONS]
List secrets

View File

@ -7,7 +7,7 @@ keywords: ["secret, rm"]
# secret rm
```Markdown
Usage: docker secret rm SECRET [SECRET...]
Usage: docker secret rm SECRET [SECRET...]
Remove one or more secrets

View File

@ -7,7 +7,7 @@ keywords: "service, ls"
# service ls
```Markdown
Usage: docker service ls [OPTIONS]
Usage: docker service ls [OPTIONS]
List services

View File

@ -7,7 +7,7 @@ keywords: "service, rm"
# service rm
```Markdown
Usage: docker service rm SERVICE [SERVICE...]
Usage: docker service rm SERVICE [SERVICE...]
Remove one or more services

View File

@ -7,7 +7,7 @@ keywords: "service, rollback"
# service rollback
```markdown
Usage: docker service rollback SERVICE
Usage: docker service rollback SERVICE
Revert changes to a service's configuration

View File

@ -7,7 +7,7 @@ keywords: "stack, ls"
# stack ls
```markdown
Usage: docker stack ls [OPTIONS]
Usage: docker stack ls [OPTIONS]
List stacks

View File

@ -7,7 +7,7 @@ keywords: "stack, services"
# stack services
```markdown
Usage: docker stack services [OPTIONS] STACK
Usage: docker stack services [OPTIONS] STACK
List the services in the stack

View File

@ -7,7 +7,7 @@ keywords: "swarm, ca"
# swarm ca
```markdown
Usage: docker swarm ca [OPTIONS]
Usage: docker swarm ca [OPTIONS]
Manage root CA

View File

@ -7,7 +7,7 @@ keywords: "swarm, join-token"
# swarm join-token
```markdown
Usage: docker swarm join-token [OPTIONS] (worker|manager)
Usage: docker swarm join-token [OPTIONS] (worker|manager)
Manage join tokens

View File

@ -7,7 +7,7 @@ keywords: "swarm, leave"
# swarm leave
```markdown
Usage: docker swarm leave [OPTIONS]
Usage: docker swarm leave [OPTIONS]
Leave the swarm

View File

@ -7,7 +7,7 @@ keywords: "swarm, unlock-key"
# swarm unlock-key
```markdown
Usage: docker swarm unlock-key [OPTIONS]
Usage: docker swarm unlock-key [OPTIONS]
Manage the unlock key

View File

@ -7,7 +7,7 @@ keywords: "swarm, unlock"
# swarm unlock
```markdown
Usage: docker swarm unlock
Usage: docker swarm unlock
Unlock swarm

View File

@ -7,7 +7,7 @@ keywords: "system, data, usage, disk"
# system df
```markdown
Usage: docker system df [OPTIONS]
Usage: docker system df [OPTIONS]
Show docker filesystem usage

View File

@ -7,7 +7,7 @@ keywords: "system, prune, delete, remove"
# system prune
```markdown
Usage: docker system prune [OPTIONS]
Usage: docker system prune [OPTIONS]
Remove unused data

View File

@ -7,7 +7,7 @@ keywords: "key, notary, trust"
# trust key load
```markdown
Usage: docker trust key load [OPTIONS] KEYFILE
Usage: docker trust key load [OPTIONS] KEYFILE
Load a private key file for signing

View File

@ -7,7 +7,7 @@ keywords: "signer, notary, trust"
# trust signer add
```markdown
Usage: docker trust signer add [OPTIONS] NAME REPOSITORY [REPOSITORY...]
Usage: docker trust signer add [OPTIONS] NAME REPOSITORY [REPOSITORY...]
Add a signer

View File

@ -7,7 +7,7 @@ keywords: "signer, notary, trust"
# trust signer remove
```markdown
Usage: docker trust signer remove [OPTIONS] NAME REPOSITORY [REPOSITORY...]
Usage: docker trust signer remove [OPTIONS] NAME REPOSITORY [REPOSITORY...]
Remove a signer

View File

@ -7,7 +7,7 @@ keywords: "volume, prune, delete"
# volume prune
```markdown
Usage: docker volume prune [OPTIONS]
Usage: docker volume prune [OPTIONS]
Remove all unused local volumes

View File

@ -49,7 +49,7 @@ func TestNonexistingHelp(t *testing.T) {
// This should actually be the whole docker help
// output, so spot check instead having of a golden
// with everything in, which will change too frequently.
Out: "Usage: docker [OPTIONS] COMMAND\n\nA self-sufficient runtime for containers",
Out: "Usage: docker [OPTIONS] COMMAND\n\nA self-sufficient runtime for containers",
Err: icmd.None,
})
// Short -h should be the same, modulo the deprecation message
@ -101,7 +101,7 @@ func TestBadHelp(t *testing.T) {
// This should be literally the whole docker help
// output, so spot check instead of a golden with
// everything in which will change all the time.
Out: "Usage: docker [OPTIONS] COMMAND\n\nA self-sufficient runtime for containers",
Out: "Usage: docker [OPTIONS] COMMAND\n\nA self-sufficient runtime for containers",
Err: icmd.None,
})
// Short -h should be the same, modulo the deprecation message

View File

@ -1,4 +1,4 @@
Usage: docker helloworld goodbye
Usage: docker helloworld goodbye
Say Goodbye instead of Hello

View File

@ -1,5 +1,5 @@
Usage: docker helloworld [OPTIONS] COMMAND
Usage: docker helloworld [OPTIONS] COMMAND
A basic Hello World plugin for tests

View File

@ -1,5 +1,5 @@
Usage: docker stack deploy [OPTIONS] STACK
Usage: docker stack deploy [OPTIONS] STACK
Deploy a new stack or update an existing stack

View File

@ -1,5 +1,5 @@
Usage: docker stack deploy [OPTIONS] STACK
Usage: docker stack deploy [OPTIONS] STACK
Deploy a new stack or update an existing stack