lsjson, lsf: support showing the Tier of the object

This commit is contained in:
Nick Craig-Wood 2019-03-20 12:45:06 +00:00
parent eeab7a0a43
commit a57756a05c
3 changed files with 17 additions and 0 deletions

View file

@ -1596,6 +1596,13 @@ func (l *ListFormat) AddOrigID() {
})
}
// AddTier adds file's Tier to the output if known
func (l *ListFormat) AddTier() {
l.AppendOutput(func(entry *ListJSONItem) string {
return entry.Tier
})
}
// AddMimeType adds file's MimeType to the output if known
func (l *ListFormat) AddMimeType() {
l.AppendOutput(func(entry *ListJSONItem) string {