From 884c45de0c3dc09db47268c45f811265e561dcb6 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Mon, 21 Jan 2019 17:10:07 -0500 Subject: [PATCH] chore: move print calls together --- plugins/config/src/commands/commands.go | 2 +- plugins/network/src/commands/commands.go | 2 +- plugins/repo/src/commands/commands.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/config/src/commands/commands.go b/plugins/config/src/commands/commands.go index 8d24c953c..04465d531 100644 --- a/plugins/config/src/commands/commands.go +++ b/plugins/config/src/commands/commands.go @@ -67,11 +67,11 @@ func main() { } func usage() { - fmt.Println(helpHeader) config := columnize.DefaultConfig() config.Delim = "," config.Prefix = " " config.Empty = "" content := strings.Split(helpContent, "\n")[1:] + fmt.Println(helpHeader) fmt.Println(columnize.Format(content, config)) } diff --git a/plugins/network/src/commands/commands.go b/plugins/network/src/commands/commands.go index e8d1fdcf8..b18de6202 100644 --- a/plugins/network/src/commands/commands.go +++ b/plugins/network/src/commands/commands.go @@ -55,11 +55,11 @@ func main() { } func usage() { - fmt.Println(helpHeader) config := columnize.DefaultConfig() config.Delim = "," config.Prefix = " " config.Empty = "" content := strings.Split(helpContent, "\n")[1:] + fmt.Println(helpHeader) fmt.Println(columnize.Format(content, config)) } diff --git a/plugins/repo/src/commands/commands.go b/plugins/repo/src/commands/commands.go index 8abaada25..03213873f 100644 --- a/plugins/repo/src/commands/commands.go +++ b/plugins/repo/src/commands/commands.go @@ -53,11 +53,11 @@ func main() { } func usage() { - fmt.Println(helpHeader) config := columnize.DefaultConfig() config.Delim = "," config.Prefix = " " config.Empty = "" content := strings.Split(helpContent, "\n")[1:] + fmt.Println(helpHeader) fmt.Println(columnize.Format(content, config)) }