UNPKG

scaffold-scripts

Version:

Simple CLI tool for managing and running your own scripts. Add any script, run it anywhere.

44 lines 1.32 kB
export declare class ScriptExecutor { private isWindows; private typeDetector; /** * Convert script to appropriate platform format */ convertScript(script: string, targetPlatform?: string): string; /** * Convert script to Windows PowerShell format */ private convertToWindows; /** * Convert script to Unix/Linux format */ private convertToUnix; /** * Get script type info from string */ private getScriptTypeInfo; /** * Execute the script in the current directory with real-time output streaming */ executeScript(script: string, targetPlatform?: string, args?: string[], knownScriptType?: string): Promise<{ stdout: string; stderr: string; }>; /** * Execute a command with real-time output streaming */ private executeWithStreaming; /** * Execute interpreter-based scripts (Python, Node.js, etc.) */ private executeInterpreterScript; /** * Execute interpreter-based scripts with real-time output streaming */ private executeInterpreterScriptWithStreaming; /** * Preview what the script will look like when converted */ previewScript(script: string, targetPlatform?: string): string; } //# sourceMappingURL=scriptExecutor.d.ts.map