mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-01 06:42:26 +00:00
lsp progress
This commit is contained in:
21
packages/opencode/src/cli/cmd/scrap.ts
Normal file
21
packages/opencode/src/cli/cmd/scrap.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
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.file(args.file)
|
||||
const diagnostics = await LSP.diagnostics()
|
||||
console.log(diagnostics)
|
||||
},
|
||||
)
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user