aboutsummaryrefslogtreecommitdiff
path: root/internal/commands/drop.go
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-10-23 13:05:05 +0000
committerFuwn <[email protected]>2024-10-23 13:05:05 +0000
commit2036ad87691ad92fc45c352b317bd0c1fd587189 (patch)
tree0d0f65a11910081f7036859ee028fe9a6dc49cfd /internal/commands/drop.go
parentdocs(readme): fix typo (diff)
downloadyae-2036ad87691ad92fc45c352b317bd0c1fd587189.tar.xz
yae-2036ad87691ad92fc45c352b317bd0c1fd587189.zip
feat(yae): dry-run flag
Diffstat (limited to 'internal/commands/drop.go')
-rw-r--r--internal/commands/drop.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/commands/drop.go b/internal/commands/drop.go
index 58855df..f30afb6 100644
--- a/internal/commands/drop.go
+++ b/internal/commands/drop.go
@@ -19,6 +19,10 @@ func Drop(sources *yae.Sources) func(c *cli.Context) error {
sources.Drop(c.Args().Get(0))
+ if c.Bool("dry-run") {
+ return nil
+ }
+
return sources.Save(c.String("sources"))
}
}