Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/gauntlet/src/cli/types.ts>Program

Work-in-progress front-end tool which does put a smile on my face
Latest
interface Program
import { type Program } from "https://deno.land/x/gauntlet@v0.0.9/src/cli/types.ts";

Properties

commands: Array<Command>
flags: Record<string, Flag>[]
options: Record<string, Option>[]
_name: string
_version: string

Methods

command(
alias: string,
description: string,
callback: Callback,
): this
flag(aliases: SingleOrPair<string>, description: string): this
option(
aliases: SingleOrPair<string>,
description: string,
defaultValue: Input,
): this
help(context: Context): void
parse(args: string[]): Context
fallback(callback: Callback): this
run(args: string[]): void