diff options
| author | Fuwn <[email protected]> | 2024-10-23 13:05:05 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-10-23 13:05:05 +0000 |
| commit | 2036ad87691ad92fc45c352b317bd0c1fd587189 (patch) | |
| tree | 0d0f65a11910081f7036859ee028fe9a6dc49cfd /internal/commands/drop.go | |
| parent | docs(readme): fix typo (diff) | |
| download | yae-2036ad87691ad92fc45c352b317bd0c1fd587189.tar.xz yae-2036ad87691ad92fc45c352b317bd0c1fd587189.zip | |
feat(yae): dry-run flag
Diffstat (limited to 'internal/commands/drop.go')
| -rw-r--r-- | internal/commands/drop.go | 4 |
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")) } } |