(
cmd: string | CommandHandlerDefinition | DefinitionOrCommandName[],
description?: CommandHandler['description'],
builder?: CommandBuilderDefinition | CommandBuilder,
handler?: CommandHandlerCallback,
middlewares?: Middleware[],
deprecated?: boolean
)
| 511 | return this; |
| 512 | } |
| 513 | command( |
| 514 | cmd: string | CommandHandlerDefinition | DefinitionOrCommandName[], |
| 515 | description?: CommandHandler['description'], |
| 516 | builder?: CommandBuilderDefinition | CommandBuilder, |
| 517 | handler?: CommandHandlerCallback, |
| 518 | middlewares?: Middleware[], |
| 519 | deprecated?: boolean |
| 520 | ): YargsInstance { |
| 521 | argsert( |
| 522 | '<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]', |
| 523 | [cmd, description, builder, handler, middlewares, deprecated], |
| 524 | arguments.length |
| 525 | ); |
| 526 | this.#command.addHandler( |
| 527 | cmd, |
| 528 | description, |
| 529 | builder, |
| 530 | handler, |
| 531 | middlewares, |
| 532 | deprecated |
| 533 | ); |
| 534 | return this; |
| 535 | } |
| 536 | commands( |
| 537 | cmd: string | CommandHandlerDefinition | DefinitionOrCommandName[], |
| 538 | description?: CommandHandler['description'], |
no test coverage detected