Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
method Command.prototype.select
Re-export
import { Command } from "https://deno.land/x/commit_genius@v0.4.0/deps.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>