Skip to content
This repository was archived by the owner on Aug 6, 2026. It is now read-only.

Commit 7ef2ed6

Browse files
committed
clean up
1 parent 9348db6 commit 7ef2ed6

37 files changed

Lines changed: 152 additions & 2424 deletions

‎packages/cli/src/cli.ts‎

Lines changed: 9 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -6,30 +6,22 @@ import {
66
getCoreCommands,
77
JJ,
88
} from "@array/core";
9-
import { abandon } from "./commands/abandon";
109
import { auth } from "./commands/auth";
1110
import { bottom } from "./commands/bottom";
1211
import { checkout } from "./commands/checkout";
1312
import { config } from "./commands/config";
14-
import { conflicts } from "./commands/conflicts";
1513
import { continueCommand } from "./commands/continue";
1614
import { create } from "./commands/create";
1715
import { deleteChange } from "./commands/delete";
18-
import { disable } from "./commands/disable";
1916
import { down } from "./commands/down";
20-
import { edit } from "./commands/edit";
21-
import { enable } from "./commands/enable";
22-
import { exit } from "./commands/exit";
2317
import { init } from "./commands/init";
24-
import { list } from "./commands/list";
2518
import { log } from "./commands/log";
2619
import { merge } from "./commands/merge";
2720
import { modify } from "./commands/modify";
2821
import { restack } from "./commands/restack";
2922
import { stacks } from "./commands/stacks";
3023
import { status } from "./commands/status";
3124
import { submit } from "./commands/submit";
32-
import { swap } from "./commands/swap";
3325
import { sync } from "./commands/sync";
3426
import { top } from "./commands/top";
3527
import { 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();

‎packages/cli/src/commands/abandon.ts‎

Lines changed: 0 additions & 39 deletions
This file was deleted.

‎packages/cli/src/commands/checkout.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ export async function checkout(id: string): Promise<void> {
2020
return;
2121
}
2222

23-
// Use jj revset for searching - description substring (case-insensitive)
23+
// Search by: description substring OR bookmark/branch name substring (case-insensitive)
2424
const escaped = id.replace(/"/g, '\\"');
25-
const revset = `description(substring-i:"${escaped}")`;
25+
const revset = `description(substring-i:"${escaped}") | bookmarks(substring-i:"${escaped}")`;
2626

2727
const listResult = await jj.list({ revset });
2828
if (!listResult.ok) {

‎packages/cli/src/commands/conflicts.ts‎

Lines changed: 0 additions & 77 deletions
This file was deleted.

‎packages/cli/src/commands/disable.ts‎

Lines changed: 0 additions & 47 deletions
This file was deleted.

‎packages/cli/src/commands/edit.ts‎

Lines changed: 0 additions & 54 deletions
This file was deleted.

0 commit comments

Comments
 (0)