Lines Matching refs:current
20 defaultCompletion(args, argv, current, done) { argument
33 this.commandCompletions(completions, args, current);
34 this.optionCompletions(completions, args, argv, current);
35 this.choicesCompletions(completions, args, argv, current);
38 commandCompletions(completions, args, current) { argument
42 if (!current.match(/^-/) &&
43 parentCommands[parentCommands.length - 1] !== current &&
59 optionCompletions(completions, args, argv, current) { argument
60 if ((current.match(/^-/) || (current === '' && completions.length === 0)) &&
70 this.completeOptionKey(key, completions, current);
72 this.completeOptionKey(`no-${key}`, completions, current);
77 choicesCompletions(completions, args, argv, current) { argument
120 completeOptionKey(key, completions, current) { argument
124 const dashes = !startsByTwoDashes(current) && isShortOption(key) ? '-' : '--';
134 customCompletion(args, argv, current, done) { argument
137 const result = this.customCompletionFunction(current, argv);
154 …eturn this.customCompletionFunction(current, argv, (onCompleted = done) => this.defaultCompletion(…
159 return this.customCompletionFunction(current, argv, completions => {
165 const current = args.length ? args[args.length - 1] : '';
168 ? (argv) => this.customCompletion(args, argv, current, done)
169 : (argv) => this.defaultCompletion(args, argv, current, done);