summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authoreltrac <hi@eltr.ac>2026-05-27 14:48:37 +0800
committereltrac <hi@eltr.ac>2026-05-27 14:48:37 +0800
commit886e3980c03cd056157164bc2a4a712167849270 (patch)
tree6bba64b9b41100e8ba3048aa7f92e1e452e1b889 /main.go
parent51ed797d38edb3f3884d69064d72108497a24818 (diff)
fix: --no-cache not working for list commandHEADmaster
Diffstat (limited to 'main.go')
-rw-r--r--main.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/main.go b/main.go
index d58fba3..6ea78c1 100644
--- a/main.go
+++ b/main.go
@@ -73,9 +73,16 @@ func main() {
Value: false,
Destination: &ListNoDep,
},
+ &cli.BoolFlag{
+ Name: "no-cache",
+ Aliases: []string{"nc"},
+ Usage: "Disable caching",
+ Value: false,
+ Destination: &NoCache,
+ },
},
Action: func(ctx context.Context, cmd *cli.Command) error {
- return runList()
+ return runList(!NoCache)
},
},
{