|
@@ -213,6 +213,7 @@ export class Cli { |
|
|
const loggerFn = thisCli.options.logger; |
|
|
const loggerFn = thisCli.options.logger; |
|
|
const defaultLogger = { |
|
|
const defaultLogger = { |
|
|
level: 'info', |
|
|
level: 'info', |
|
|
|
|
|
enabled: typeof loggerFn === 'boolean' ? loggerFn : true, |
|
|
debug: stdoutLogFn, |
|
|
debug: stdoutLogFn, |
|
|
info: stdoutLogFn, |
|
|
info: stdoutLogFn, |
|
|
warn: stdoutLogFn, |
|
|
warn: stdoutLogFn, |
|
@@ -252,6 +253,7 @@ export class Cli { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
command({ parameters, command, interactiveMode = true, handler, ...args }: CommandArgs): Cli { |
|
|
command({ parameters, command, interactiveMode = true, handler, ...args }: CommandArgs): Cli { |
|
|
|
|
|
// TODO type-safe declaration of positional/optional arguments |
|
|
const { |
|
|
const { |
|
|
option = 'interactive', |
|
|
option = 'interactive', |
|
|
alias = 'i', |
|
|
alias = 'i', |
|
|