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

x/proc/tools/deps/cliffy.ts>Command#complete

A better way to work with processes in Deno.
Very Popular
Go to Latest
method Command.prototype.complete
Re-export
import { Command } from "https://deno.land/x/proc@0.21.0/tools/deps/cliffy.ts";

Register global complete handler.

Parameters

name: string

The name of the completion.

complete: CompleteHandler<Partial<TCommandOptions>, Partial<TCommandArguments>, TCommandGlobals, TParentCommandGlobals, TCommandTypes, TCommandGlobalTypes, TParentCommandTypes, any>

The callback method to complete the type.

options: CompleteOptions & { global: boolean; }

Complete options.

Register complete handler.

Parameters

name: string

The name of the completion.

complete: CompleteHandler<TCommandOptions, TCommandArguments, TCommandGlobals, TParentCommandGlobals, TCommandTypes, TCommandGlobalTypes, TParentCommandTypes, TParentCommand>

The callback method to complete the type.

optional
options: CompleteOptions

Complete options.