CLI: Use 8 char min col size instead of 20

This commit is contained in:
Jason Wilder 2015-02-15 12:30:09 -07:00
parent f443b7087c
commit 04a970eda2
2 changed files with 3 additions and 3 deletions

View File

@ -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 {

View File

@ -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)