UNPKG

@nu-art/commando

Version:

Shell command execution framework with interactive sessions, CLI parameter resolution, and plugin system for building and executing shell scripts programmatically

18 lines (17 loc) 568 B
import { BaseCommando } from './core/BaseCommando.js'; /** * Log output types for shell commands. * * - `'out'`: Standard output (stdout) * - `'err'`: Standard error (stderr) */ export type LogTypes = 'out' | 'err'; /** * Function type for command blocks that operate on a Commando instance. * * Used for composing command sequences where a function receives * a Commando instance and builds commands on it. * * @template Commando - Commando type (must extend BaseCommando) */ export type CliBlock<Commando extends BaseCommando> = (cli: Commando) => void;