Files
opencode/packages/opencode/src/cli/cmd/scrap.ts
2025-06-06 17:20:08 -04:00

21 lines
547 B
TypeScript

import { App } from "../../app/app"
import { VERSION } from "../version"
import { LSP } from "../../lsp"
import { cmd } from "./cmd"
export const ScrapCommand = cmd({
command: "scrap <file>",
builder: (yargs) =>
yargs.positional("file", { type: "string", demandOption: true }),
describe: "test command",
async handler(args) {
await App.provide(
{ cwd: process.cwd(), version: VERSION, printLogs: true },
async () => {
await LSP.touchFile(args.file, true)
await LSP.diagnostics()
},
)
},
})