Merge pull request #3086 from dokku/fix-golang-help-output
Fix help output for golang plugins
This commit is contained in:
@@ -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:
|
||||
|
||||
1
plugins/network/.gitignore
vendored
1
plugins/network/.gitignore
vendored
@@ -1,5 +1,6 @@
|
||||
/commands
|
||||
/subcommands/*
|
||||
/triggers/*
|
||||
/network-*
|
||||
/install
|
||||
/post-create
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user