mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-24 06:45:22 +00:00
15 lines
437 B
TypeScript
15 lines
437 B
TypeScript
import { App } from "../../app/app"
|
|
import { VERSION } from "../version"
|
|
import { cmd } from "./cmd"
|
|
|
|
export const ScrapCommand = cmd({
|
|
command: "scrap <file>",
|
|
builder: (yargs) =>
|
|
yargs.positional("file", { type: "string", demandOption: true }),
|
|
async handler() {
|
|
await App.provide({ cwd: process.cwd(), version: VERSION }, async (app) => {
|
|
Bun.resolveSync("typescript/lib/tsserver.js", app.path.cwd)
|
|
})
|
|
},
|
|
})
|