Commit 04a970ed by Jason Wilder

CLI: Use 8 char min col size instead of 20

parent f443b708
......@@ -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 {
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment