@five-vm/cli
Version:
High-performance CLI for Five VM development with WebAssembly integration
69 lines • 1.75 kB
TypeScript
#!/usr/bin/env node
/**
* Five CLI - Main Entry Point
*
* High-performance command-line interface for Five VM development with WebAssembly integration.
* Provides DSL compilation, bytecode analysis, VM execution, and Solana deployment capabilities.
*/
import { Command } from 'commander';
import { CLIConfig, Logger } from './types.js';
export declare class FiveCLI {
private program;
private config;
private logger;
private context;
constructor(config: CLIConfig);
/**
* Initialize the CLI program with metadata and global options
*/
private setupProgram;
/**
* Setup command execution context
*/
private setupContext;
/**
* Register all available commands with the CLI
*/
private registerCommands;
/**
* Update execution context from command-line options
*/
private updateContextFromOptions;
/**
* Handle command execution errors with proper formatting and exit codes
*/
private handleCommandError;
/**
* Run the CLI with provided arguments
*/
run(argv: string[]): Promise<void>;
/**
* Get CLI version from package.json
*/
private getVersion;
/**
* Get CLI program instance for testing
*/
getProgram(): Command;
/**
* Get current configuration
*/
getConfig(): CLIConfig;
/**
* Get current logger
*/
getLogger(): Logger;
}
/**
* Create and configure a new Five CLI instance
*/
export declare function createCLI(config?: Partial<CLIConfig>): FiveCLI;
/**
* Default export for convenience
*/
export default FiveCLI;
/**
* Main execution when run as script
*/
export declare function main(): Promise<void>;
//# sourceMappingURL=index.d.ts.map