Skip to main content
Module

x/cliffy/command/command.ts>Command#select

Command line framework for deno 🦕 Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...
Extremely Popular
Go to Latest
method Command.prototype.select
import { Command } from "https://deno.land/x/cliffy@v1.0.0-rc.3/command/command.ts";

Set internal command pointer to child command with given name.

Type Parameters

optional
TOptions extends Record<string, unknown> | void = any
optional
TArguments extends Array<unknown> = any
optional
TGlobalOptions extends Record<string, unknown> | void = any

Parameters

name: string

The name of the command to select.

Returns

Command<TParentCommandGlobals, TParentCommandTypes, TOptions, TArguments, TGlobalOptions, TCommandTypes, TCommandGlobalTypes, TParentCommand>