Merge branch 'sandlot-rm-completion'
This commit is contained in:
commit
ed43aaff78
|
|
@ -85,6 +85,7 @@ program
|
||||||
.command("rm", { hidden: true })
|
.command("rm", { hidden: true })
|
||||||
.argument("<branch>", "branch name")
|
.argument("<branch>", "branch name")
|
||||||
.option("-f, --force", "close even if there are unsaved changes")
|
.option("-f, --force", "close even if there are unsaved changes")
|
||||||
|
.description("Remove a session (alias for close)")
|
||||||
.action((branch: string, opts: { force?: boolean }) => closeAction(branch, opts))
|
.action((branch: string, opts: { force?: boolean }) => closeAction(branch, opts))
|
||||||
|
|
||||||
// ── sandlot merge ────────────────────────────────────────────────────
|
// ── sandlot merge ────────────────────────────────────────────────────
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,6 @@ export function action(program: Command) {
|
||||||
const branchCommands: string[] = []
|
const branchCommands: string[] = []
|
||||||
|
|
||||||
for (const cmd of program.commands) {
|
for (const cmd of program.commands) {
|
||||||
if ((cmd as any)._hidden) continue
|
|
||||||
const name = cmd.name()
|
const name = cmd.name()
|
||||||
const desc = cmd.description()
|
const desc = cmd.description()
|
||||||
const subs = cmd.commands as Command[]
|
const subs = cmd.commands as Command[]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user