use spaces instead of tabs for CLI column output format

pull/7699/head
Cory LaNou 2016-12-07 09:38:10 -06:00
parent 29a4a16baf
commit 4442615f15
2 changed files with 2 additions and 1 deletions

View File

@ -25,6 +25,7 @@ The stress tool `influx_stress` will be removed in a subsequent release. We reco
- [#7659](https://github.com/influxdata/influxdb/issues/7659): Fix CLI import bug when using self-signed SSL certificates.
- [#7698](https://github.com/influxdata/influxdb/pull/7698): CLI was caching db/rp for insert into statements.
- [#7396](https://github.com/influxdata/influxdb/issues/7396): CLI should use spaces for alignment, not tabs.
## v1.1.1 [unreleased]

View File

@ -649,7 +649,7 @@ func (c *CommandLine) writeCSV(response *client.Response, w io.Writer) {
func (c *CommandLine) writeColumns(response *client.Response, w io.Writer) {
// Create a tabbed writer for each result as they won't always line up
writer := new(tabwriter.Writer)
writer.Init(w, 0, 8, 1, '\t', 0)
writer.Init(w, 0, 8, 1, ' ', 0)
for _, result := range response.Results {
// Print out all messages first