Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/cliffy/command/mod.ts>Command#complete

Command line framework for deno 🦕 Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...
Extremely Popular
Go to Latest
method Command.prototype.complete
Re-export
import { Command } from "https://deno.land/x/cliffy@v0.25.3/command/mod.ts";

Register command specific custom type.

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.

Parameters

name: string
complete: CompleteHandler<TCommandOptions, TCommandArguments, TCommandGlobals, TParentCommandGlobals, TCommandTypes, TCommandGlobalTypes, TParentCommandTypes, TParentCommand>
optional
options: CompleteOptions