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

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

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

Get command by name or alias.

Type Parameters

TCommand extends Command<any>

Parameters

name: string

Name or alias of the command.

optional
hidden: boolean

Include hidden commands.

Returns

TCommand | undefined