mirror of
https://github.com/celogeek/piwigo-cli.git
synced 2025-05-25 10:12:37 +02:00
little optimization
This commit is contained in:
parent
222fce0e3f
commit
281530ce4c
@ -59,7 +59,6 @@ func (c *ImageDetailsCommand) Execute(args []string) error {
|
|||||||
{"Filesize", resp.Filesize},
|
{"Filesize", resp.Filesize},
|
||||||
{"Categories", strings.Join(resp.Categories.Names(), "\n")},
|
{"Categories", strings.Join(resp.Categories.Names(), "\n")},
|
||||||
{"Tags", strings.Join(resp.Tags.NamesWithAgeAt(resp.DateCreation), "\n")},
|
{"Tags", strings.Join(resp.Tags.NamesWithAgeAt(resp.DateCreation), "\n")},
|
||||||
// {"Derivatives", resp.Derivatives},
|
|
||||||
})
|
})
|
||||||
t.SetOutputMirror(os.Stdout)
|
t.SetOutputMirror(os.Stdout)
|
||||||
t.SetStyle(table.StyleLight)
|
t.SetStyle(table.StyleLight)
|
||||||
|
@ -4,7 +4,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Tags []Tag
|
type Tags []*Tag
|
||||||
|
|
||||||
type Tag struct {
|
type Tag struct {
|
||||||
Id int `json:"id"`
|
Id int `json:"id"`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user