mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-10 04:30:12 +02:00
[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:
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user