Module

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

yargs the modern, pirate-themed successor to optimist.
Go to Latest
class Completion
import { Completion } from "https://dotland.deno.dev/x/yargs@v17.7.1-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,
)
customCompletion(
args,
argv,
current,
done,
)
defaultCompletion(
args,
argv,
current,
done,
)
getCompletion(args, done)
optionCompletions(
completions,
args,
argv,
current,
)
setParsed(parsed)