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

x/alloy_folk/deps.ts>cliffy.Command#hasCommand

An application installer for restriced macOS
Go to Latest
method cliffy.Command.prototype.hasCommand
Re-export
import { cliffy } from "https://deno.land/x/alloy_folk@v1.1.1/deps.ts";
const { Command } = cliffy;

Checks whether a child command exists by given name or alias.

Parameters

name: string

Name or alias of the command.

optional
hidden: boolean

Include hidden commands.

Returns

boolean