Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cli: Fix more commands with inconsistent UI #2045

Merged
merged 1 commit into from
Feb 27, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions cmd/config-host-main.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ var configHostCmd = cli.Command{
Action: mainConfigHost,
Before: setGlobalsFromContext,
CustomHelpTemplate: `NAME:
{{.HelpName}} - {{.Usage}}
{{.HelpName}} - {{.Usage}}

USAGE:
{{.HelpName}} OPERATION
{{.HelpName}} OPERATION

OPERATION:
add ALIAS URL ACCESS-KEY SECRET-KEY [API]
remove ALIAS
list
add ALIAS URL ACCESS-KEY SECRET-KEY [API]
remove ALIAS
list

FLAGS:
{{range .VisibleFlags}}{{.}}
Expand Down
4 changes: 2 additions & 2 deletions cmd/events-add.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ var eventsAddCmd = cli.Command{
Before: setGlobalsFromContext,
Flags: append(eventsAddFlags, globalFlags...),
CustomHelpTemplate: `NAME:
{{.HelpName}} - {{.Usage}}
{{.HelpName}} - {{.Usage}}

USAGE:
{{.HelpName}} ALIAS/BUCKET ARN [FLAGS]
{{.HelpName}} ALIAS/BUCKET ARN [FLAGS]

FLAGS:
{{range .VisibleFlags}}{{.}}
Expand Down
4 changes: 2 additions & 2 deletions cmd/events-list.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ var eventsListCmd = cli.Command{
Before: setGlobalsFromContext,
Flags: append(eventsListFlags, globalFlags...),
CustomHelpTemplate: `NAME:
{{.HelpName}} - {{.Usage}}
{{.HelpName}} - {{.Usage}}

USAGE:
{{.HelpName}} ALIAS/BUCKET ARN [FLAGS]
{{.HelpName}} ALIAS/BUCKET ARN [FLAGS]

FLAGS:
{{range .VisibleFlags}}{{.}}
Expand Down
2 changes: 1 addition & 1 deletion cmd/events-remove.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ var eventsRemoveCmd = cli.Command{
{{.HelpName}} - {{.Usage}}

USAGE:
{{.HelpName}} ALIAS/BUCKET [ARN] [FLAGS]
{{.HelpName}} ALIAS/BUCKET [ARN] [FLAGS]

FLAGS:
{{range .VisibleFlags}}{{.}}
Expand Down
1 change: 0 additions & 1 deletion cmd/mb-main.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ var mbCmd = cli.Command{

USAGE:
{{.HelpName}} [FLAGS] TARGET [TARGET...]

{{if .VisibleFlags}}
FLAGS:
{{range .VisibleFlags}}{{.}}
Expand Down
1 change: 0 additions & 1 deletion cmd/policy-main.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ USAGE:

PERMISSION:
Allowed policies are: [none, download, upload, public].

{{if .VisibleFlags}}
FLAGS:
{{range .VisibleFlags}}{{.}}
Expand Down
1 change: 0 additions & 1 deletion cmd/session-main.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ OPERATION:

SESSION-ID:
SESSION - Session can either be $SESSION-ID or "all".

{{if .VisibleFlags}}
FLAGS:
{{range .VisibleFlags}}{{.}}
Expand Down
4 changes: 2 additions & 2 deletions cmd/version-main.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ var versionCmd = cli.Command{
},
},
CustomHelpTemplate: `NAME:
{{.HelpName}} - {{.Usage}}
{{.HelpName}} - {{.Usage}}

USAGE:
{{.HelpName}}{{if .VisibleFlags}} [FLAGS]{{end}}
{{.HelpName}}{{if .VisibleFlags}} [FLAGS]{{end}}
{{if .VisibleFlags}}
FLAGS:
{{range .VisibleFlags}}{{.}}
Expand Down
1 change: 0 additions & 1 deletion cmd/watch-main.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ var watchCmd = cli.Command{

USAGE:
{{.HelpName}} [FLAGS]

{{if .VisibleFlags}}
FLAGS:
{{range .VisibleFlags}}{{.}}
Expand Down