import { CLI } from "https://deno.land/x/spektr@0.0.5/spektr.ts";
Skeptr CLI app class.
Constructors
new
CLI(opts?: { name?: string; prefix?: string; plugins?: Plugin[]; helpFn?: (cmd: Command) => string; } & ParseArgsConfig)Methods
createVersionMessage(version?, misc?)
handle(args: string[]): void
Handle commands with the given arguments. For Deno use Deno.args
, for Node.js and Bun use process.argv
program(prefix: string, program?)
Create a program, aka sub-command. It will handle all commands starting with a specified prefix