[yabridgectl] Only recreate files when necessary

As suggested in #42. This also adds a `--force` flag to reenable the old
behaviour and always recreate files even when not necessary.
This commit is contained in:
Robbert van der Helm
2020-10-17 18:21:53 +02:00
parent 8dc95f939e
commit e6af947fe1
3 changed files with 59 additions and 7 deletions
+7
View File
@@ -100,6 +100,12 @@ fn main() -> Result<()> {
.subcommand(
App::new("sync")
.about("Set up or update yabridge for all plugins")
.arg(
Arg::with_name("force")
.short('f')
.long("force")
.about("Always update files, even not necessary"),
)
.arg(
Arg::with_name("no-verify")
.short('n')
@@ -156,6 +162,7 @@ fn main() -> Result<()> {
("sync", Some(options)) => actions::do_sync(
&mut config,
&actions::SyncOptions {
force: options.is_present("force"),
no_verify: options.is_present("no-verify"),
prune: options.is_present("prune"),
verbose: options.is_present("verbose"),