aboutsummaryrefslogtreecommitdiff
path: root/yae.go
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-10-12 14:01:15 +0000
committerFuwn <[email protected]>2024-10-12 14:01:15 +0000
commit693a1e8a41903a739c227bfe489f8912111a4674 (patch)
tree9b955f57a43f847bfee34e7a83e14d61852d2878 /yae.go
parentfeat(source): extra output logs (diff)
downloadyae-693a1e8a41903a739c227bfe489f8912111a4674.tar.xz
yae-693a1e8a41903a739c227bfe489f8912111a4674.zip
refactor(yae): control logging through silent flag
Diffstat (limited to 'yae.go')
-rw-r--r--yae.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/yae.go b/yae.go
index 9d05dd0..ea11354 100644
--- a/yae.go
+++ b/yae.go
@@ -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)