소스 검색

CLI: Use 8 char min col size instead of 20

Jason Wilder 11 년 전
부모
커밋
04a970eda2
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 1
      pkg/cmd/accounts.go
  2. 2 2
      pkg/cmd/datasource.go

+ 1 - 1
pkg/cmd/accounts.go

@@ -43,7 +43,7 @@ func listAccounts(c *cli.Context) {
 		log.ConsoleFatalf("Failed to find accounts: %s", err)
 		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")
 	fmt.Fprintf(w, "ID\tNAME\n")
 	for _, account := range accountsQuery.Result {
 	for _, account := range accountsQuery.Result {

+ 2 - 2
pkg/cmd/datasource.go

@@ -49,7 +49,7 @@ func listDatasources(c *cli.Context) {
 		log.ConsoleFatalf("Failed to find datasources: %s", err)
 		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")
 	fmt.Fprintf(w, "ID\tNAME\tURL\tTYPE\tACCESS\tDEFAULT\n")
 	for _, ds := range query.Result {
 	for _, ds := range query.Result {
@@ -84,7 +84,7 @@ func describeDataSource(c *cli.Context) {
 	}
 	}
 	datasource := query.Result
 	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, "NAME\t%s\n", datasource.Name)
 	fmt.Fprintf(w, "URL\t%s\n", datasource.Url)
 	fmt.Fprintf(w, "URL\t%s\n", datasource.Url)
 	fmt.Fprintf(w, "DEFAULT\t%t\n", datasource.IsDefault)
 	fmt.Fprintf(w, "DEFAULT\t%t\n", datasource.IsDefault)