Browse Source

adjust collection list output

pull/895/head
Chris Lu 6 years ago
parent
commit
22fbbf023b
  1. 2
      weed/shell/command_collection_list.go

2
weed/shell/command_collection_list.go

@ -30,7 +30,7 @@ func (c *commandCollectionList) Do(args []string, commandEnv *commandEnv, writer
} }
for _, c := range resp.Collections { for _, c := range resp.Collections {
fmt.Fprintf(writer, "collection:\"%s\"\n", c.GetName())
fmt.Fprintf(writer, "collection:\"%s\"\treplication:\"%s\"\tTTL:\"%s\"\n", c.GetName(), c.GetReplication(), c.GetTtl())
} }
fmt.Fprintf(writer, "Total %d collections.\n", len(resp.Collections)) fmt.Fprintf(writer, "Total %d collections.\n", len(resp.Collections))

Loading…
Cancel
Save