Lines Matching refs:commandHandler

115         const commandHandler = this.handlers[command] ||
123 currentContext.fullCommands.push(commandHandler.original);
125 …const builderResult = this.applyBuilderUpdateUsageAndParse(isDefaultCommand, commandHandler, yargs…
127 …lt.then(result => this.applyMiddlewareAndGetResult(isDefaultCommand, commandHandler, result.innerA…
128 …: this.applyMiddlewareAndGetResult(isDefaultCommand, commandHandler, builderResult.innerArgv, curr…
130 …applyBuilderUpdateUsageAndParse(isDefaultCommand, commandHandler, yargs, aliases, parentCommands, … argument
131 const builder = commandHandler.builder;
138 …return this.parseAndUpdateUsage(isDefaultCommand, commandHandler, innerYargs, parentCommands, comm…
144 Object.keys(commandHandler.builder).forEach(key => {
148 …return this.parseAndUpdateUsage(isDefaultCommand, commandHandler, innerYargs, parentCommands, comm…
150 …parseAndUpdateUsage(isDefaultCommand, commandHandler, innerYargs, parentCommands, commandIndex, he… argument
157 …e(this.usageFromParentCommandsCommandHandler(parentCommands, commandHandler), commandHandler.descr…
176 usageFromParentCommandsCommandHandler(parentCommands, commandHandler) { argument
177 const c = DEFAULT_MARKER.test(commandHandler.original)
178 ? commandHandler.original.replace(DEFAULT_MARKER, '').trim()
179 : commandHandler.original;
186 …applyMiddlewareAndGetResult(isDefaultCommand, commandHandler, innerArgv, currentContext, helpOnly,… argument
191 … positionalMap = this.populatePositionals(commandHandler, innerArgv, currentContext, yargs);
196 .concat(commandHandler.middlewares);
207 if (commandHandler.handler && !yargs.getInternalMethods().getHasOutput()) {
215 const handlerResult = commandHandler.handler(result);
240 populatePositionals(commandHandler, argv, context, yargs) { argument
242 const demanded = commandHandler.demanded.slice(0);
243 const optional = commandHandler.optional.slice(0);
255 …this.postProcessPositionals(argv, positionalMap, this.cmdToParseOptions(commandHandler.original), …