From 107dcfe53d8f4c4ab921d1c7c031aa6b2f5f5af9 Mon Sep 17 00:00:00 2001 From: TheoryOfNekomata Date: Mon, 22 Apr 2024 14:55:56 +0800 Subject: [PATCH] Update wrapper Adjust logging flag. --- packages/cli/src/packages/cli-wrapper.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/cli/src/packages/cli-wrapper.ts b/packages/cli/src/packages/cli-wrapper.ts index ffb6c96..69d665c 100644 --- a/packages/cli/src/packages/cli-wrapper.ts +++ b/packages/cli/src/packages/cli-wrapper.ts @@ -213,6 +213,7 @@ export class Cli { const loggerFn = thisCli.options.logger; const defaultLogger = { level: 'info', + enabled: typeof loggerFn === 'boolean' ? loggerFn : true, debug: stdoutLogFn, info: stdoutLogFn, warn: stdoutLogFn, @@ -252,6 +253,7 @@ export class Cli { } command({ parameters, command, interactiveMode = true, handler, ...args }: CommandArgs): Cli { + // TODO type-safe declaration of positional/optional arguments const { option = 'interactive', alias = 'i',