2025-10-28 20:38:08 +00:00
|
|
|
import { EOL } from "os"
|
2026-04-16 03:28:46 +00:00
|
|
|
import { Project } from "../../../project"
|
2026-04-16 03:15:58 +00:00
|
|
|
import { Log } from "../../../util"
|
2025-07-10 15:25:31 +00:00
|
|
|
import { cmd } from "../cmd"
|
|
|
|
|
|
|
|
|
|
export const ScrapCommand = cmd({
|
|
|
|
|
command: "scrap",
|
2026-01-08 15:42:12 +00:00
|
|
|
describe: "list all known projects",
|
2025-07-10 15:25:31 +00:00
|
|
|
builder: (yargs) => yargs,
|
2025-09-01 21:15:49 +00:00
|
|
|
async handler() {
|
|
|
|
|
const timer = Log.Default.time("scrap")
|
|
|
|
|
const list = await Project.list()
|
2025-10-28 20:38:08 +00:00
|
|
|
process.stdout.write(JSON.stringify(list, null, 2) + EOL)
|
2025-09-01 21:15:49 +00:00
|
|
|
timer.stop()
|
|
|
|
|
},
|
2025-07-10 15:25:31 +00:00
|
|
|
})
|