@@ -64,34 +64,29 @@ use crate::ui::Ui;
64
64
65
65
#[ derive( clap:: Parser , Clone , Debug ) ]
66
66
enum Commands {
67
- Version ( VersionArgs ) ,
68
- Init ( InitArgs ) ,
67
+ Abandon ( AbandonArgs ) ,
68
+ Backout ( BackoutArgs ) ,
69
69
#[ command( subcommand) ]
70
- Config ( ConfigSubcommand ) ,
71
- Checkout ( CheckoutArgs ) ,
72
- Untrack ( UntrackArgs ) ,
73
- Files ( FilesArgs ) ,
70
+ Branch ( branch:: BranchSubcommand ) ,
74
71
#[ command( alias = "print" ) ]
75
72
Cat ( CatArgs ) ,
76
- Diff ( DiffArgs ) ,
77
- Show ( ShowArgs ) ,
78
- Status ( StatusArgs ) ,
79
- Log ( LogArgs ) ,
80
- Obslog ( ObslogArgs ) ,
81
- Interdiff ( InterdiffArgs ) ,
82
- Describe ( DescribeArgs ) ,
73
+ Checkout ( CheckoutArgs ) ,
83
74
Commit ( CommitArgs ) ,
75
+ #[ command( subcommand) ]
76
+ Config ( ConfigSubcommand ) ,
77
+ #[ command( subcommand) ]
78
+ Debug ( DebugCommands ) ,
79
+ Describe ( DescribeArgs ) ,
80
+ Diff ( DiffArgs ) ,
81
+ Diffedit ( DiffeditArgs ) ,
84
82
Duplicate ( DuplicateArgs ) ,
85
- Abandon ( AbandonArgs ) ,
86
83
Edit ( EditArgs ) ,
87
- New ( NewArgs ) ,
88
- Move ( MoveArgs ) ,
89
- Squash ( SquashArgs ) ,
90
- Unsquash ( UnsquashArgs ) ,
91
- Restore ( RestoreArgs ) ,
92
- Diffedit ( DiffeditArgs ) ,
93
- Resolve ( ResolveArgs ) ,
94
- Split ( SplitArgs ) ,
84
+ Files ( FilesArgs ) ,
85
+ #[ command( subcommand) ]
86
+ Git ( git:: GitCommands ) ,
87
+ Init ( InitArgs ) ,
88
+ Interdiff ( InterdiffArgs ) ,
89
+ Log ( LogArgs ) ,
95
90
/// Merge work from multiple branches
96
91
///
97
92
/// Unlike most other VCSs, `jj merge` does not implicitly include the
@@ -102,22 +97,27 @@ enum Commands {
102
97
/// This is the same as `jj new`, except that it requires at least two
103
98
/// arguments.
104
99
Merge ( NewArgs ) ,
105
- Rebase ( RebaseArgs ) ,
106
- Backout ( BackoutArgs ) ,
107
- #[ command( subcommand) ]
108
- Branch ( branch:: BranchSubcommand ) ,
109
- /// Undo an operation (shortcut for `jj op undo`)
110
- Undo ( operation:: OperationUndoArgs ) ,
100
+ Move ( MoveArgs ) ,
101
+ New ( NewArgs ) ,
102
+ Obslog ( ObslogArgs ) ,
111
103
#[ command( subcommand) ]
112
104
#[ command( visible_alias = "op" ) ]
113
105
Operation ( operation:: OperationCommands ) ,
114
- #[ command( subcommand) ]
115
- Workspace ( WorkspaceCommands ) ,
106
+ Rebase ( RebaseArgs ) ,
107
+ Resolve ( ResolveArgs ) ,
108
+ Restore ( RestoreArgs ) ,
109
+ Show ( ShowArgs ) ,
116
110
Sparse ( SparseArgs ) ,
111
+ Split ( SplitArgs ) ,
112
+ Squash ( SquashArgs ) ,
113
+ Status ( StatusArgs ) ,
114
+ /// Undo an operation (shortcut for `jj op undo`)
115
+ Undo ( operation:: OperationUndoArgs ) ,
116
+ Unsquash ( UnsquashArgs ) ,
117
+ Untrack ( UntrackArgs ) ,
118
+ Version ( VersionArgs ) ,
117
119
#[ command( subcommand) ]
118
- Git ( git:: GitCommands ) ,
119
- #[ command( subcommand) ]
120
- Debug ( DebugCommands ) ,
120
+ Workspace ( WorkspaceCommands ) ,
121
121
}
122
122
123
123
/// Display version information
0 commit comments