aahook
Version:
A CLI tool that displays ASCII art when commands succeed or fail
27 lines • 732 B
TypeScript
import { Config, HookConfig } from './config';
/**
* Command execution result
*/
export interface ExecutionResult {
command: string;
exitCode: number;
stdout: string;
stderr: string;
}
/**
* Execute command and capture result
*/
export declare function executeCommand(args: string[]): ExecutionResult;
/**
* Run command with hook support
*/
export declare function runWithHook(args: string[]): void;
/**
* Find hook configuration for command
*/
export declare function findHook(config: Config, command: string): HookConfig | null;
/**
* Determine which art file to display
*/
export declare function determineArtFile(hook: HookConfig, exitCode: number): string | null;
//# sourceMappingURL=execute.d.ts.map