cloudaxe-opencode/packages/opencode/src/cli/cmd/debug/scrap.ts

17 lines
445 B
TypeScript
Raw Normal View History

import { EOL } from "os"
import { Project } from "../../../project"
import { Log } from "../../../util"
2025-07-10 15:25:31 +00:00
import { cmd } from "../cmd"
export const ScrapCommand = cmd({
command: "scrap",
describe: "list all known projects",
2025-07-10 15:25:31 +00:00
builder: (yargs) => yargs,
async handler() {
const timer = Log.Default.time("scrap")
const list = await Project.list()
process.stdout.write(JSON.stringify(list, null, 2) + EOL)
timer.stop()
},
2025-07-10 15:25:31 +00:00
})