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

x/cliffy/command/mod.ts>IAction

Command line framework for deno 🦕 Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...
Extremely Popular
Go to Latest
type alias IAction
Re-export
import { type IAction } from "https://deno.land/x/cliffy@v0.24.3/command/mod.ts";

Action handler for commands and options.

Type Parameters

optional
O extends Record<string, any> | void = any
optional
A extends Array<unknown> = O extends number ? any : []
optional
G extends Record<string, any> | void = O extends number ? any : void
optional
PG extends Record<string, any> | void = O extends number ? any : void
optional
CT extends Record<string, any> | void = O extends number ? any : void
optional
GT extends Record<string, any> | void = O extends number ? any : void
optional
PT extends Record<string, any> | void = O extends number ? any : void
optional
P extends Command<any> | undefined = O extends number ? any : undefined
definition: (
this: Command<PG, PT, O, A, G, CT, GT, P>,
options: MapTypes<Merge<PG, Merge<G, O>>>,
...args: MapTypes<A>,
) => unknown | Promise<unknown>