mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-03-31 14:22:27 +00:00
16 lines
418 B
TypeScript
16 lines
418 B
TypeScript
import { EOL } from "os"
|
|
import { Project } from "../../../project/project"
|
|
import { Log } from "../../../util/log"
|
|
import { cmd } from "../cmd"
|
|
|
|
export const ScrapCommand = cmd({
|
|
command: "scrap",
|
|
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()
|
|
},
|
|
})
|