mirror of
https://github.com/langgenius/dify.git
synced 2026-10-04 13:47:55 +08:00
refactor: improve network error and allow verbose output (#36923)
This commit is contained in:
1 parent
b682591c7a
commit
f19679b217
28 files changed
+339
-231
No files matched your search
@@ -45,7 +45,10 @@ export async function run(tree: CommandTree, argv: string[]): Promise<void> {
|
||||
if (typeof Ctor.deprecated === 'string' && Ctor.deprecated.length > 0)
|
||||
process.stderr.write(`deprecated: ${Ctor.deprecated}\n`)
|
||||
const cmd = new Ctor()
|
||||
const output = await cmd.run(argv.slice(resolved.path.length))
|
||||
const commandArgv = argv.slice(resolved.path.length)
|
||||
cmd.processGlobalFlags(commandArgv)
|
||||
|
||||
const output = await cmd.run(commandArgv)
|
||||
if (output !== undefined)
|
||||
process.stdout.write(stringifyOutput(output))
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user