(command: string)
| 8 | |
| 9 | // Function to execute shell commands |
| 10 | function executeCommand(command: string) { |
| 11 | console.log(`\x1b[33m${command}\x1b[0m`); |
| 12 | try { |
| 13 | return execSync(command, { encoding: "utf-8" }); |
| 14 | } catch (error: any) { |
| 15 | return { error: true, message: error.stdout || error.stderr }; |
| 16 | } |
| 17 | } |
| 18 | |
| 19 | // Function to prompt user for input without readline-sync |
| 20 | async function prompt(message: string, defaultValue: string): Promise<string> { |
no outgoing calls
no test coverage detected