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

Fix help output for golang plugins
This commit is contained in:
Jose Diaz-Gonzalez
2018-02-28 04:15:04 -05:00
committed by GitHub
5 changed files with 5 additions and 4 deletions

View File

@@ -44,7 +44,7 @@ func main() {
args.Parse(os.Args[2:])
config.CommandShow(args.Args(), *global, *shell, *export, *merged)
case "help":
fmt.Print(helpContent)
fmt.Print("\n config, Manages global and app-specific config vars\n")
case "config:help":
usage()
default:

View File

@@ -1,5 +1,6 @@
/commands
/subcommands/*
/triggers/*
/network-*
/install
/post-create

View File

@@ -22,7 +22,7 @@ subcommands/%: src/subcommands/*/%.go
go build $(GO_ARGS) -o $@ $<
clean:
rm -rf commands subcommands network-* install post-create post-delete
rm -rf commands subcommands triggers network-* install post-create post-delete
src-clean:
rm -rf .gitignore src triggers vendor Makefile *.go

View File

@@ -34,7 +34,7 @@ func main() {
case "network", "network:help":
usage()
case "help":
fmt.Print(helpContent)
fmt.Print("\n network, Manages network settings for an app\n")
default:
dokkuNotImplementExitCode, err := strconv.Atoi(os.Getenv("DOKKU_NOT_IMPLEMENTED_EXIT"))
if err != nil {

View File

@@ -32,7 +32,7 @@ func main() {
case "repo", "repo:help":
usage()
case "help":
fmt.Print(helpContent)
fmt.Print("\n repo, Runs commands that interact with the app's repo\n")
default:
dokkuNotImplementExitCode, err := strconv.Atoi(os.Getenv("DOKKU_NOT_IMPLEMENTED_EXIT"))
if err != nil {