UNPKG

tiny-bin

Version:

A library for building tiny and beautiful command line apps.

23 lines (22 loc) 688 B
import Addon from './addon.js'; import Arguments from './arguments.js'; import Options from './options.js'; import Usage from './usage.js'; import type { ArgumentsParsed, CommandHandler, CommandOptions } from '../types.js'; import type Bin from './bin.js'; declare class Command extends Addon { ids: string[]; name: string; description: string; section: string; deprecated: boolean; hidden: boolean; arguments: Arguments; options: Options; usage: Usage; handler?: CommandHandler<any>; constructor(bin: Bin, options: CommandOptions); private parse; run(options: ArgumentsParsed, argv: string[]): Promise<void>; } export default Command;