diff options
| author | Fuwn <[email protected]> | 2024-10-12 14:01:15 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-10-12 14:01:15 +0000 |
| commit | 693a1e8a41903a739c227bfe489f8912111a4674 (patch) | |
| tree | 9b955f57a43f847bfee34e7a83e14d61852d2878 /yae.go | |
| parent | feat(source): extra output logs (diff) | |
| download | yae-693a1e8a41903a739c227bfe489f8912111a4674.tar.xz yae-693a1e8a41903a739c227bfe489f8912111a4674.zip | |
refactor(yae): control logging through silent flag
Diffstat (limited to 'yae.go')
| -rw-r--r-- | yae.go | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -220,14 +220,13 @@ func main() { }, }, Action: func(c *cli.Context) error { - showAll := !c.Bool("show-updated-only") && !c.Bool("show-updated-only-formatted") updates := []string{} force := c.Bool("force-hashed") forcePinned := c.Bool("force-pinned") if c.Args().Len() == 0 { for name, source := range sources { - if updated, err := source.Update(&sources, name, showAll, force, forcePinned); err != nil { + if updated, err := source.Update(&sources, name, force, forcePinned); err != nil { return err } else if updated { updates = append(updates, name) @@ -237,7 +236,7 @@ func main() { name := c.Args().Get(0) source := sources[name] - if updated, err := source.Update(&sources, name, showAll, force, forcePinned); err != nil { + if updated, err := source.Update(&sources, name, force, forcePinned); err != nil { return err } else if updated { updates = append(updates, name) |