MCPcopy Create free account
hub / github.com/yargs/yargs / isCommandAndAliases

Function isCommandAndAliases

lib/command.ts:849–853  ·  view source on GitHub ↗
(
  cmd: DefinitionOrCommandName[]
)

Source from the content-addressed store, hash-verified

847}
848
849function isCommandAndAliases(
850 cmd: DefinitionOrCommandName[]
851): cmd is [CommandHandlerDefinition, ...string[]] {
852 return cmd.every(c => typeof c === 'string');
853}
854
855export function isCommandBuilderCallback(
856 builder: CommandBuilder

Callers 1

addHandlerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…