Skip to content

Commit

Permalink
cli: split up commands/operation.rs into one file per command
Browse files Browse the repository at this point in the history
  • Loading branch information
martinvonz committed Jun 21, 2024
1 parent 3db183b commit 95cb24c
Show file tree
Hide file tree
Showing 7 changed files with 511 additions and 426 deletions.
4 changes: 2 additions & 2 deletions cli/src/commands/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ enum Command {
#[command(subcommand)]
Util(util::UtilCommand),
/// Undo an operation (shortcut for `jj op undo`)
Undo(operation::OperationUndoArgs),
Undo(operation::undo::OperationUndoArgs),
Unsquash(unsquash::UnsquashArgs),
Untrack(untrack::UntrackArgs),
Version(version::VersionArgs),
Expand Down Expand Up @@ -212,7 +212,7 @@ pub fn run_command(ui: &mut Ui, command_helper: &CommandHelper) -> Result<(), Co
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::Undo(args) => operation::cmd_op_undo(ui, command_helper, args),
Command::Undo(args) => operation::undo::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),
Expand Down
Loading

0 comments on commit 95cb24c

Please sign in to comment.