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:
Dax Raad
2025-06-09 14:52:30 -04:00
parent 3c23b92bea
commit d8510ab452
5 changed files with 76 additions and 79 deletions

View File

@@ -34,7 +34,6 @@ export const RunCommand = {
{
cwd: process.cwd(),
version: "0.0.0",
printLogs: args.printLogs,
},
async () => {
await Share.init()

View File

@@ -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()
})
},
})