diff options
Diffstat (limited to 'bin/core/imag-ref/src/ui.rs')
-rw-r--r-- | bin/core/imag-ref/src/ui.rs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/bin/core/imag-ref/src/ui.rs b/bin/core/imag-ref/src/ui.rs index 2b548074..3583a4e5 100644 --- a/bin/core/imag-ref/src/ui.rs +++ b/bin/core/imag-ref/src/ui.rs @@ -129,6 +129,25 @@ pub fn build_ui<'a>(app: App<'a, 'a>) -> App<'a, 'a> { .help("List ids of entries which refer to a path that does not exist")) ) + .subcommand(SubCommand::with_name("move") + .about("Move a reference (move the actual file and correct the ref in the store)") + .version("0.1") + .arg(Arg::with_name("ID") + .index(1) + .takes_value(true) + .required(false) + .multiple(false) + .help("Move this ID") + .value_name("ID")) + + .arg(Arg::with_name("target-path") + .index(2) + .takes_value(true) + .required(false) + .multiple(false) + .help("Move the file (whereever it is) to this path")) + ) + } pub struct PathProvider; |