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

x/autocli/mod.ts>CLI

A small library for creating CLIs in TypeScript
Latest
class CLI
import { CLI } from "https://deno.land/x/autocli@0.3/mod.ts";

Constructors

new
CLI(commands: CommandShape[])

Properties

private
cmds: CommandMap
private
readonly
execute: (args: string[]) => Promise<number>
private
readonly
getCommand: () => unknown
private
helpMessage: string
private
invalid: (cmd: string) => unknown
private
prompt: string
private
unknown: (cmd: string) => unknown
readonly
run: () => unknown
readonly
setInvalid: (func: (args: string) => void) => void
readonly
setPrompt: (prompt: string) => unknown
readonly
setUnknown: (func: (args: string) => void) => void