Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/yargs/build/lib/completion.js>Completion

yargs the modern, pirate-themed successor to optimist.
Latest
class Completion
import { Completion } from "https://deno.land/x/yargs@v17.7.2-deno/build/lib/completion.js";

Constructors

new
Completion(
yargs,
usage,
command,
shim,
)

Methods

argsContainKey(
args,
key,
negable,
)
choicesFromOptionsCompletions(
completions,
args,
argv,
current,
)
choicesFromPositionalsCompletions(
completions,
args,
argv,
current,
)
commandCompletions(
completions,
args,
current,
)
completeOptionKey(
key,
completions,
current,
negable,
)
customCompletion(
args,
argv,
current,
done,
)
defaultCompletion(
args,
argv,
current,
done,
)
getCompletion(args, done)
optionCompletions(
completions,
args,
argv,
current,
)
setParsed(parsed)