Co-authored-by: GitHub Action <action@github.com> Co-authored-by: Liang-Shih Lin <liangshihlin@proton.me> Co-authored-by: Dominik Engelhardt <dominikengelhardt@ymail.com> Co-authored-by: Jay V <air@live.ca> Co-authored-by: adamdottv <2363879+adamdottv@users.noreply.github.com>
27 lines
738 B
TypeScript
27 lines
738 B
TypeScript
import { bootstrap } from "../../bootstrap"
|
|
import { cmd } from "../cmd"
|
|
import { FileCommand } from "./file"
|
|
import { LSPCommand } from "./lsp"
|
|
import { RipgrepCommand } from "./ripgrep"
|
|
import { SnapshotCommand } from "./snapshot"
|
|
|
|
export const DebugCommand = cmd({
|
|
command: "debug",
|
|
builder: (yargs) =>
|
|
yargs
|
|
.command(LSPCommand)
|
|
.command(RipgrepCommand)
|
|
.command(FileCommand)
|
|
.command(SnapshotCommand)
|
|
.command({
|
|
command: "wait",
|
|
async handler() {
|
|
await bootstrap({ cwd: process.cwd() }, async () => {
|
|
await new Promise((resolve) => setTimeout(resolve, 1_000 * 60 * 60 * 24))
|
|
})
|
|
},
|
|
})
|
|
.demandCommand(),
|
|
async handler() {},
|
|
})
|