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:
parent
3c23b92bea
commit
d8510ab452
2 changed files with 76 additions and 79 deletions
|
|
@ -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()
|
||||
})
|
||||
},
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue