Merge pull request #3013 from alexquick/fix-help

Fix some issues with config/network/repo help output
This commit is contained in:
Jose Diaz-Gonzalez authored and GitHub committed 2017-12-16 23:50:09 -05:00
commit 40421b32a4
3 files changed
+5 -4

No files matched your search

+3 -2
View File
@@ -43,8 +43,9 @@ func main() {
merged := args.Bool("merged", false, "--merged: display the app's envionment merged with the global environment") merged := args.Bool("merged", false, "--merged: display the app's envionment merged with the global environment")
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 "config:help":
case "help": case "help":
fmt.Print(helpContent)
case "config:help":
usage() usage()
default: default:
dokkuNotImplementExitCode, err := strconv.Atoi(os.Getenv("DOKKU_NOT_IMPLEMENTED_EXIT")) dokkuNotImplementExitCode, err := strconv.Atoi(os.Getenv("DOKKU_NOT_IMPLEMENTED_EXIT"))
@@ -59,7 +60,7 @@ func main() {
func usage() { func usage() {
config := columnize.DefaultConfig() config := columnize.DefaultConfig()
config.Delim = "," config.Delim = ","
config.Prefix = "\t" config.Prefix = " "
config.Empty = "" config.Empty = ""
content := strings.Split(helpContent, "\n")[1:] content := strings.Split(helpContent, "\n")[1:]
fmt.Println(helpHeader) fmt.Println(helpHeader)
+1 -1
View File
@@ -48,7 +48,7 @@ func main() {
func usage() { func usage() {
config := columnize.DefaultConfig() config := columnize.DefaultConfig()
config.Delim = "," config.Delim = ","
config.Prefix = "\t" config.Prefix = " "
config.Empty = "" config.Empty = ""
content := strings.Split(helpContent, "\n")[1:] content := strings.Split(helpContent, "\n")[1:]
fmt.Println(helpHeader) fmt.Println(helpHeader)
+1 -1
View File
@@ -46,7 +46,7 @@ func main() {
func usage() { func usage() {
config := columnize.DefaultConfig() config := columnize.DefaultConfig()
config.Delim = "," config.Delim = ","
config.Prefix = "\t" config.Prefix = " "
config.Empty = "" config.Empty = ""
content := strings.Split(helpContent, "\n")[1:] content := strings.Split(helpContent, "\n")[1:]
fmt.Println(helpHeader) fmt.Println(helpHeader)