diff --git a/radicle-cli/src/commands/help.rs b/radicle-cli/src/commands/help.rs index 25458dae..9a156f8a 100644 --- a/radicle-cli/src/commands/help.rs +++ b/radicle-cli/src/commands/help.rs @@ -14,17 +14,23 @@ pub const HELP: Help = Help { const COMMANDS: &[Help] = &[ rad_auth::HELP, - rad_init::HELP, rad_checkout::HELP, + rad_clone::HELP, + rad_edit::HELP, + rad_help::HELP, + rad_init::HELP, + rad_inspect::HELP, + rad_issue::HELP, + rad_ls::HELP, + rad_merge::HELP, + rad_patch::HELP, + rad_path::HELP, + rad_push::HELP, + rad_review::HELP, + rad_rm::HELP, rad_self::HELP, rad_track::HELP, rad_untrack::HELP, - rad_ls::HELP, - rad_edit::HELP, - rad_inspect::HELP, - rad_rm::HELP, - rad_issue::HELP, - HELP, ]; #[derive(Default)] diff --git a/radicle-cli/src/main.rs b/radicle-cli/src/main.rs index d72748cd..a1b66cfe 100644 --- a/radicle-cli/src/main.rs +++ b/radicle-cli/src/main.rs @@ -118,6 +118,22 @@ fn run_other(exe: &str, args: &[OsString]) -> Result<(), Option> args.to_vec(), ); } + "clone" => { + term::run_command_args::( + rad_clone::HELP, + "Clone", + rad_clone::run, + args.to_vec(), + ); + } + "edit" => { + term::run_command_args::( + rad_edit::HELP, + "Edit", + rad_edit::run, + args.to_vec(), + ); + } "help" => { term::run_command_args::( rad_help::HELP, @@ -134,6 +150,78 @@ fn run_other(exe: &str, args: &[OsString]) -> Result<(), Option> args.to_vec(), ); } + "inspect" => { + term::run_command_args::( + rad_inspect::HELP, + "Inspect", + rad_inspect::run, + args.to_vec(), + ); + } + "issue" => { + term::run_command_args::( + rad_issue::HELP, + "Command", + rad_issue::run, + args.to_vec(), + ); + } + "ls" => { + term::run_command_args::( + rad_ls::HELP, + "List", + rad_ls::run, + args.to_vec(), + ); + } + "merge" => { + term::run_command_args::( + rad_merge::HELP, + "Merge", + rad_merge::run, + args.to_vec(), + ); + } + "patch" => { + term::run_command_args::( + rad_patch::HELP, + "Command", + rad_patch::run, + args.to_vec(), + ); + } + "path" => { + term::run_command_args::( + rad_path::HELP, + "Path", + rad_path::run, + args.to_vec(), + ); + } + "push" => { + term::run_command_args::( + rad_push::HELP, + "Push", + rad_push::run, + args.to_vec(), + ); + } + "review" => { + term::run_command_args::( + rad_review::HELP, + "Review", + rad_review::run, + args.to_vec(), + ); + } + "rm" => { + term::run_command_args::( + rad_rm::HELP, + "Remove", + rad_rm::run, + args.to_vec(), + ); + } "self" => { term::run_command_args::( rad_self::HELP, @@ -158,54 +246,6 @@ fn run_other(exe: &str, args: &[OsString]) -> Result<(), Option> args.to_vec(), ); } - "ls" => { - term::run_command_args::( - rad_ls::HELP, - "List", - rad_ls::run, - args.to_vec(), - ); - } - "edit" => { - term::run_command_args::( - rad_edit::HELP, - "Edit", - rad_edit::run, - args.to_vec(), - ); - } - "inspect" => { - term::run_command_args::( - rad_inspect::HELP, - "Inspect", - rad_inspect::run, - args.to_vec(), - ); - } - "rm" => { - term::run_command_args::( - rad_rm::HELP, - "Remove", - rad_rm::run, - args.to_vec(), - ); - } - "issue" => { - term::run_command_args::( - rad_issue::HELP, - "Command", - rad_issue::run, - args.to_vec(), - ); - } - "path" => { - term::run_command_args::( - rad_path::HELP, - "Command", - rad_path::run, - args.to_vec(), - ); - } _ => { let exe = format!("{}-{}", NAME, exe); let status = process::Command::new(exe.clone()).args(args).status();