fix(cli): call this.parse in arg-less commands to silence oclif UnparsedCommand warning

oclif v4 warns "did not parse its arguments" for any command class whose
run() never calls this.parse(ClassName), independent of whether the
command declares args/flags. Add the call in the five arg-less commands.
This commit is contained in:
GareArc 2026-05-11 19:01:14 -07:00
parent 6779366dca
commit b21d0ae32d
No known key found for this signature in database
5 changed files with 5 additions and 0 deletions

View File

@ -17,6 +17,7 @@ export default class Logout extends DifyCommand {
]
async run(): Promise<void> {
await this.parse(Logout)
const configDir = resolveConfigDir()
const bundle = await loadHosts(configDir)
const { store } = await selectStore({ configDir })

View File

@ -10,6 +10,7 @@ export default class ConfigPath extends DifyCommand {
]
async run(): Promise<void> {
await this.parse(ConfigPath)
process.stdout.write(runConfigPath({ dir: resolveConfigDir() }))
}
}

View File

@ -9,6 +9,7 @@ export default class HelpAccount extends DifyCommand {
]
async run(): Promise<void> {
await this.parse(HelpAccount)
process.stdout.write(runHelpAccount())
}
}

View File

@ -9,6 +9,7 @@ export default class HelpEnvironment extends DifyCommand {
]
async run(): Promise<void> {
await this.parse(HelpEnvironment)
process.stdout.write(runHelpEnvironment())
}
}

View File

@ -9,6 +9,7 @@ export default class HelpExternal extends DifyCommand {
]
async run(): Promise<void> {
await this.parse(HelpExternal)
process.stdout.write(runHelpExternal())
}
}