File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed
Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ pub(crate) fn command_reset(
102102 force : bool ,
103103) -> anyhow:: Result < ( ) > {
104104 let args: Vec < & str > = vec ! [
105- "squashaaaaa " ,
105+ "squash " ,
106106 "--interactive" ,
107107 "--from" ,
108108 from. as_deref( ) . unwrap_or( "@-" ) ,
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ use crate::{
4444#[ command( about = "Fast, opinionated version control experience." , long_about = None ) ]
4545struct Cli {
4646 #[ command( subcommand) ]
47- command : Commands ,
47+ command : Option < Commands > ,
4848}
4949
5050#[ derive( Subcommand ) ]
@@ -295,7 +295,16 @@ fn main() {
295295 }
296296
297297 let cli = Cli :: parse ( ) ;
298- match & cli. command {
298+
299+ // If no subcommand is provided, fallback to jj
300+ let Some ( command) = & cli. command else {
301+ if let Err ( e) = handle_fallback_command ( & [ ] ) {
302+ error ( & e. to_string ( ) ) ;
303+ }
304+ return ;
305+ } ;
306+
307+ match command {
299308 Commands :: Init {
300309 github,
301310 private,
You can’t perform that action at this time.
0 commit comments