From d2aabc5678ea5571aa36e701e62954d062c48684 Mon Sep 17 00:00:00 2001 From: Ian Howell Date: Fri, 24 May 2019 08:15:30 -0500 Subject: [PATCH] Use custom tabwriter in version --- cmd/version.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/version.go b/cmd/version.go index d87d6aeb2..051b158f1 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -3,9 +3,10 @@ package cmd import ( "fmt" "io" - "text/tabwriter" "github.com/spf13/cobra" + + "github.com/ian-howell/airshipctl/pkg/util" ) // NewVersionCommand prints out the versions of airshipctl and its underlying tools @@ -15,7 +16,7 @@ func NewVersionCommand(out io.Writer) *cobra.Command { Short: "Show the version number of airshipctl", Run: func(cmd *cobra.Command, args []string) { clientV := clientVersion() - w := tabwriter.NewWriter(out, 0, 0, 1, ' ', 0) + w := util.NewTabWriter(out) defer w.Flush() fmt.Fprintf(w, "%s:\t%s\n", "airshipctl", clientV) },