Merge pull request #3086 from dokku/fix-golang-help-output

Fix help output for golang plugins
This commit is contained in:
Jose Diaz-Gonzalez authored and GitHub committed 2018-02-28 04:15:04 -05:00
commit 1c62a055d3
5 files changed
+5 -4

No files matched your search

+1 -1
View File
@@ -44,7 +44,7 @@ func main() {
args.Parse(os.Args[2:]) args.Parse(os.Args[2:])
config.CommandShow(args.Args(), *global, *shell, *export, *merged) config.CommandShow(args.Args(), *global, *shell, *export, *merged)
case "help": case "help":
fmt.Print(helpContent) fmt.Print("\n config, Manages global and app-specific config vars\n")
case "config:help": case "config:help":
usage() usage()
default: default:
+1
View File
@@ -1,5 +1,6 @@
/commands /commands
/subcommands/* /subcommands/*
/triggers/*
/network-* /network-*
/install /install
/post-create /post-create
+1 -1
View File
@@ -22,7 +22,7 @@ subcommands/%: src/subcommands/*/%.go
go build $(GO_ARGS) -o $@ $< go build $(GO_ARGS) -o $@ $<
clean: clean:
rm -rf commands subcommands network-* install post-create post-delete rm -rf commands subcommands triggers network-* install post-create post-delete
src-clean: src-clean:
rm -rf .gitignore src triggers vendor Makefile *.go rm -rf .gitignore src triggers vendor Makefile *.go
+1 -1
View File
@@ -34,7 +34,7 @@ func main() {
case "network", "network:help": case "network", "network:help":
usage() usage()
case "help": case "help":
fmt.Print(helpContent) fmt.Print("\n network, Manages network settings for an app\n")
default: default:
dokkuNotImplementExitCode, err := strconv.Atoi(os.Getenv("DOKKU_NOT_IMPLEMENTED_EXIT")) dokkuNotImplementExitCode, err := strconv.Atoi(os.Getenv("DOKKU_NOT_IMPLEMENTED_EXIT"))
if err != nil { if err != nil {
+1 -1
View File
@@ -32,7 +32,7 @@ func main() {
case "repo", "repo:help": case "repo", "repo:help":
usage() usage()
case "help": case "help":
fmt.Print(helpContent) fmt.Print("\n repo, Runs commands that interact with the app's repo\n")
default: default:
dokkuNotImplementExitCode, err := strconv.Atoi(os.Getenv("DOKKU_NOT_IMPLEMENTED_EXIT")) dokkuNotImplementExitCode, err := strconv.Atoi(os.Getenv("DOKKU_NOT_IMPLEMENTED_EXIT"))
if err != nil { if err != nil {