@@ -6,30 +6,22 @@ import {
66 getCoreCommands ,
77 JJ ,
88} from "@array/core" ;
9- import { abandon } from "./commands/abandon" ;
109import { auth } from "./commands/auth" ;
1110import { bottom } from "./commands/bottom" ;
1211import { checkout } from "./commands/checkout" ;
1312import { config } from "./commands/config" ;
14- import { conflicts } from "./commands/conflicts" ;
1513import { continueCommand } from "./commands/continue" ;
1614import { create } from "./commands/create" ;
1715import { deleteChange } from "./commands/delete" ;
18- import { disable } from "./commands/disable" ;
1916import { down } from "./commands/down" ;
20- import { edit } from "./commands/edit" ;
21- import { enable } from "./commands/enable" ;
22- import { exit } from "./commands/exit" ;
2317import { init } from "./commands/init" ;
24- import { list } from "./commands/list" ;
2518import { log } from "./commands/log" ;
2619import { merge } from "./commands/merge" ;
2720import { modify } from "./commands/modify" ;
2821import { restack } from "./commands/restack" ;
2922import { stacks } from "./commands/stacks" ;
3023import { status } from "./commands/status" ;
3124import { submit } from "./commands/submit" ;
32- import { swap } from "./commands/swap" ;
3325import { sync } from "./commands/sync" ;
3426import { top } from "./commands/top" ;
3527import { undo } from "./commands/undo" ;
@@ -107,7 +99,7 @@ ${bold("CORE WORKFLOW")}
10799 1. ${ cyan ( 'arr create "add user auth"' ) } Create a new change
108100 2. ${ dim ( "(make edits - jj tracks automatically)" ) }
109101 3. ${ cyan ( 'arr create "add tests"' ) } Stack another change
110- 4. ${ cyan ( "arr submit --stack " ) } Create PRs for the stack
102+ 4. ${ cyan ( "arr submit" ) } Create PRs for the stack
111103 5. ${ cyan ( "arr sync" ) } Fetch & rebase after reviews
112104
113105${ bold ( "LEARN MORE" ) }
@@ -152,9 +144,9 @@ async function showStatus(): Promise<void> {
152144
153145 console . log ( ) ;
154146 console . log ( ` ${ dim ( "Next:" ) } ` ) ;
155- console . log ( ` ${ cyan ( "arr create -a " ) } ${ dim ( '"msg"' ) } Add to stack` ) ;
156- console . log ( ` ${ cyan ( "arr submit --stack " ) } Create PRs` ) ;
157- console . log ( ` ${ cyan ( "arr help" ) } See all commands` ) ;
147+ console . log ( ` ${ cyan ( "arr create" ) } ${ dim ( '"msg"' ) } Add to stack` ) ;
148+ console . log ( ` ${ cyan ( "arr submit" ) } Create PRs` ) ;
149+ console . log ( ` ${ cyan ( "arr help" ) } See all commands` ) ;
158150 console . log ( ) ;
159151}
160152
@@ -256,33 +248,12 @@ export async function main(): Promise<void> {
256248 case "status" :
257249 await status ( ) ;
258250 break ;
259- case "list" :
260- await list ( ) ;
261- break ;
262- case "enable" :
263- await enable ( parsed . args ) ;
264- break ;
265- case "disable" :
266- await disable ( parsed . args ) ;
267- break ;
268- case "abandon" :
269- await abandon ( parsed . args [ 0 ] ) ;
270- break ;
271- case "conflicts" :
272- await conflicts ( parsed . args ) ;
273- break ;
274- case "swap" :
275- await swap ( parsed . args [ 0 ] ) ;
276- break ;
277251 case "create" :
278252 await create ( parsed . args . join ( " " ) , parsed . flags ) ;
279253 break ;
280254 case "modify" :
281255 await modify ( ) ;
282256 break ;
283- case "edit" :
284- await edit ( parsed . args [ 0 ] , parsed . flags ) ;
285- break ;
286257 case "submit" :
287258 await submit ( parsed . flags ) ;
288259 break ;
@@ -325,11 +296,12 @@ export async function main(): Promise<void> {
325296 case "undo" :
326297 await undo ( ) ;
327298 break ;
328- case "exit" :
329- await exit ( ) ;
330- break ;
331299 case "help" :
332- printHelp ( ) ;
300+ if ( parsed . flags . all ) {
301+ printHelpAll ( ) ;
302+ } else {
303+ printHelp ( ) ;
304+ }
333305 break ;
334306 case "version" :
335307 printVersion ( ) ;
0 commit comments