mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-03-31 22:32:28 +00:00
Refactor logging system to centralize initialization and remove printLogs parameter
🤖 Generated with [OpenCode](https://opencode.ai) Co-Authored-By: OpenCode <noreply@opencode.ai>
This commit is contained in:
@@ -34,7 +34,6 @@ export const RunCommand = {
|
||||
{
|
||||
cwd: process.cwd(),
|
||||
version: "0.0.0",
|
||||
printLogs: args.printLogs,
|
||||
},
|
||||
async () => {
|
||||
await Share.init()
|
||||
|
||||
@@ -9,12 +9,9 @@ export const ScrapCommand = cmd({
|
||||
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()
|
||||
},
|
||||
)
|
||||
await App.provide({ cwd: process.cwd(), version: VERSION }, async () => {
|
||||
await LSP.touchFile(args.file, true)
|
||||
await LSP.diagnostics()
|
||||
})
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user