forked from mirrors/jj
cli: sort match arms in run_command()
This commit is contained in:
parent
ef9633135e
commit
78dba90ac8
1 changed files with 37 additions and 37 deletions
|
@ -169,55 +169,55 @@ pub fn default_app() -> clap::Command {
|
|||
pub fn run_command(ui: &mut Ui, command_helper: &CommandHelper) -> Result<(), CommandError> {
|
||||
let subcommand = Command::from_arg_matches(command_helper.matches()).unwrap();
|
||||
match &subcommand {
|
||||
Command::Version(args) => version::cmd_version(ui, command_helper, args),
|
||||
Command::Init(args) => init::cmd_init(ui, command_helper, args),
|
||||
Command::Config(args) => config::cmd_config(ui, command_helper, args),
|
||||
Command::Checkout(args) => checkout::cmd_checkout(ui, command_helper, args),
|
||||
Command::Untrack(args) => untrack::cmd_untrack(ui, command_helper, args),
|
||||
Command::File(args) => file::cmd_file(ui, command_helper, args),
|
||||
Command::Cat(args) => file::print::deprecated_cmd_cat(ui, command_helper, args),
|
||||
Command::Files(args) => file::list::deprecated_cmd_files(ui, command_helper, args),
|
||||
Command::Diff(args) => diff::cmd_diff(ui, command_helper, args),
|
||||
Command::Show(args) => show::cmd_show(ui, command_helper, args),
|
||||
Command::Status(args) => status::cmd_status(ui, command_helper, args),
|
||||
Command::Log(args) => log::cmd_log(ui, command_helper, args),
|
||||
Command::Interdiff(args) => interdiff::cmd_interdiff(ui, command_helper, args),
|
||||
Command::Obslog(args) => obslog::cmd_obslog(ui, command_helper, args),
|
||||
Command::Describe(args) => describe::cmd_describe(ui, command_helper, args),
|
||||
Command::Commit(args) => commit::cmd_commit(ui, command_helper, args),
|
||||
Command::Duplicate(args) => duplicate::cmd_duplicate(ui, command_helper, args),
|
||||
Command::Abandon(args) => abandon::cmd_abandon(ui, command_helper, args),
|
||||
Command::Backout(args) => backout::cmd_backout(ui, command_helper, args),
|
||||
#[cfg(feature = "bench")]
|
||||
Command::Bench(args) => bench::cmd_bench(ui, command_helper, args),
|
||||
Command::Branch(args) => branch::cmd_branch(ui, command_helper, args),
|
||||
Command::Cat(args) => file::print::deprecated_cmd_cat(ui, command_helper, args),
|
||||
Command::Checkout(args) => checkout::cmd_checkout(ui, command_helper, args),
|
||||
Command::Chmod(args) => file::chmod::deprecated_cmd_chmod(ui, command_helper, args),
|
||||
Command::Commit(args) => commit::cmd_commit(ui, command_helper, args),
|
||||
Command::Config(args) => config::cmd_config(ui, command_helper, args),
|
||||
Command::Debug(args) => debug::cmd_debug(ui, command_helper, args),
|
||||
Command::Describe(args) => describe::cmd_describe(ui, command_helper, args),
|
||||
Command::Diff(args) => diff::cmd_diff(ui, command_helper, args),
|
||||
Command::Diffedit(args) => diffedit::cmd_diffedit(ui, command_helper, args),
|
||||
Command::Duplicate(args) => duplicate::cmd_duplicate(ui, command_helper, args),
|
||||
Command::Edit(args) => edit::cmd_edit(ui, command_helper, args),
|
||||
Command::File(args) => file::cmd_file(ui, command_helper, args),
|
||||
Command::Files(args) => file::list::deprecated_cmd_files(ui, command_helper, args),
|
||||
Command::Fix(args) => fix::cmd_fix(ui, command_helper, args),
|
||||
Command::Git(args) => git::cmd_git(ui, command_helper, args),
|
||||
Command::Init(args) => init::cmd_init(ui, command_helper, args),
|
||||
Command::Interdiff(args) => interdiff::cmd_interdiff(ui, command_helper, args),
|
||||
Command::Log(args) => log::cmd_log(ui, command_helper, args),
|
||||
Command::Merge(args) => merge::cmd_merge(ui, command_helper, args),
|
||||
Command::Move(args) => r#move::cmd_move(ui, command_helper, args),
|
||||
Command::New(args) => new::cmd_new(ui, command_helper, args),
|
||||
Command::Next(args) => next::cmd_next(ui, command_helper, args),
|
||||
Command::Obslog(args) => obslog::cmd_obslog(ui, command_helper, args),
|
||||
Command::Operation(args) => operation::cmd_operation(ui, command_helper, args),
|
||||
Command::Parallelize(args) => parallelize::cmd_parallelize(ui, command_helper, args),
|
||||
Command::Prev(args) => prev::cmd_prev(ui, command_helper, args),
|
||||
Command::New(args) => new::cmd_new(ui, command_helper, args),
|
||||
Command::Move(args) => r#move::cmd_move(ui, command_helper, args),
|
||||
Command::Squash(args) => squash::cmd_squash(ui, command_helper, args),
|
||||
Command::Unsquash(args) => unsquash::cmd_unsquash(ui, command_helper, args),
|
||||
Command::Rebase(args) => rebase::cmd_rebase(ui, command_helper, args),
|
||||
Command::Resolve(args) => resolve::cmd_resolve(ui, command_helper, args),
|
||||
Command::Restore(args) => restore::cmd_restore(ui, command_helper, args),
|
||||
Command::Revert(_args) => revert(),
|
||||
Command::Root(args) => root::cmd_root(ui, command_helper, args),
|
||||
Command::Run(args) => run::cmd_run(ui, command_helper, args),
|
||||
Command::Diffedit(args) => diffedit::cmd_diffedit(ui, command_helper, args),
|
||||
Command::Split(args) => split::cmd_split(ui, command_helper, args),
|
||||
Command::Merge(args) => merge::cmd_merge(ui, command_helper, args),
|
||||
Command::Rebase(args) => rebase::cmd_rebase(ui, command_helper, args),
|
||||
Command::Backout(args) => backout::cmd_backout(ui, command_helper, args),
|
||||
Command::Fix(args) => fix::cmd_fix(ui, command_helper, args),
|
||||
Command::Resolve(args) => resolve::cmd_resolve(ui, command_helper, args),
|
||||
Command::Branch(args) => branch::cmd_branch(ui, command_helper, args),
|
||||
Command::Undo(args) => operation::cmd_op_undo(ui, command_helper, args),
|
||||
Command::Operation(args) => operation::cmd_operation(ui, command_helper, args),
|
||||
Command::Workspace(args) => workspace::cmd_workspace(ui, command_helper, args),
|
||||
Command::Show(args) => show::cmd_show(ui, command_helper, args),
|
||||
Command::Sparse(args) => sparse::cmd_sparse(ui, command_helper, args),
|
||||
Command::Split(args) => split::cmd_split(ui, command_helper, args),
|
||||
Command::Squash(args) => squash::cmd_squash(ui, command_helper, args),
|
||||
Command::Status(args) => status::cmd_status(ui, command_helper, args),
|
||||
Command::Tag(args) => tag::cmd_tag(ui, command_helper, args),
|
||||
Command::Chmod(args) => file::chmod::deprecated_cmd_chmod(ui, command_helper, args),
|
||||
Command::Git(args) => git::cmd_git(ui, command_helper, args),
|
||||
Command::Undo(args) => operation::cmd_op_undo(ui, command_helper, args),
|
||||
Command::Unsquash(args) => unsquash::cmd_unsquash(ui, command_helper, args),
|
||||
Command::Untrack(args) => untrack::cmd_untrack(ui, command_helper, args),
|
||||
Command::Util(args) => util::cmd_util(ui, command_helper, args),
|
||||
#[cfg(feature = "bench")]
|
||||
Command::Bench(args) => bench::cmd_bench(ui, command_helper, args),
|
||||
Command::Debug(args) => debug::cmd_debug(ui, command_helper, args),
|
||||
Command::Version(args) => version::cmd_version(ui, command_helper, args),
|
||||
Command::Workspace(args) => workspace::cmd_workspace(ui, command_helper, args),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue