Skip to content

Commit

Permalink
Fix --names support for listing obj contents
Browse files Browse the repository at this point in the history
Signed-off-by: R.I.Pienaar <[email protected]>
  • Loading branch information
ripienaar committed Oct 24, 2023
1 parent e60a12b commit 1da7345
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cli/object_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,13 @@ func (c *objCommand) lsAction(_ *fisk.ParseContext) error {
return nil
}

if c.listNames {
for _, s := range contents {
fmt.Println(s.Name)
}
return nil
}

table := newTableWriter("Bucket Contents")
table.AddHeaders("Name", "Size", "Time")

Expand Down

0 comments on commit 1da7345

Please sign in to comment.