Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/powar/deps.ts>cliffy.Command#complete

A simple but powerful TypeScript-based dot-file manager.
Latest
method cliffy.Command.prototype.complete
Re-export
import { cliffy } from "https://deno.land/x/powar@1.0.4/deps.ts";
const { Command } = cliffy;

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.