From 04a970eda2c5301b69236d5fd90e3014e07ab087 Mon Sep 17 00:00:00 2001 From: Jason Wilder Date: Sun, 15 Feb 2015 12:30:09 -0700 Subject: [PATCH] CLI: Use 8 char min col size instead of 20 --- pkg/cmd/accounts.go | 2 +- pkg/cmd/datasource.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/cmd/accounts.go b/pkg/cmd/accounts.go index 7849ef22246..f2f8d27cacd 100644 --- a/pkg/cmd/accounts.go +++ b/pkg/cmd/accounts.go @@ -43,7 +43,7 @@ func listAccounts(c *cli.Context) { log.ConsoleFatalf("Failed to find accounts: %s", err) } - w := tabwriter.NewWriter(os.Stdout, 20, 1, 4, ' ', 0) + w := tabwriter.NewWriter(os.Stdout, 8, 1, 4, ' ', 0) fmt.Fprintf(w, "ID\tNAME\n") for _, account := range accountsQuery.Result { diff --git a/pkg/cmd/datasource.go b/pkg/cmd/datasource.go index 324b36e53c1..093a635a014 100644 --- a/pkg/cmd/datasource.go +++ b/pkg/cmd/datasource.go @@ -49,7 +49,7 @@ func listDatasources(c *cli.Context) { log.ConsoleFatalf("Failed to find datasources: %s", err) } - w := tabwriter.NewWriter(os.Stdout, 20, 1, 4, ' ', 0) + w := tabwriter.NewWriter(os.Stdout, 8, 1, 4, ' ', 0) fmt.Fprintf(w, "ID\tNAME\tURL\tTYPE\tACCESS\tDEFAULT\n") for _, ds := range query.Result { @@ -84,7 +84,7 @@ func describeDataSource(c *cli.Context) { } datasource := query.Result - w := tabwriter.NewWriter(os.Stdout, 20, 1, 4, ' ', 0) + w := tabwriter.NewWriter(os.Stdout, 8, 1, 4, ' ', 0) fmt.Fprintf(w, "NAME\t%s\n", datasource.Name) fmt.Fprintf(w, "URL\t%s\n", datasource.Url) fmt.Fprintf(w, "DEFAULT\t%t\n", datasource.IsDefault)