(script: string)
| 37 | }; |
| 38 | |
| 39 | async function runScript(script: string) { |
| 40 | p.outro(`${i18n.t('Running')}: ${script}`); |
| 41 | console.log(''); |
| 42 | try { |
| 43 | await execaCommand(script, { |
| 44 | stdio: 'inherit', |
| 45 | shell: process.env.SHELL || true, |
| 46 | }); |
| 47 | appendToShellHistory(script); |
| 48 | } catch (error) { |
| 49 | // Nothing needed, it'll output to stderr |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | async function getPrompt(prompt?: string) { |
| 54 | await initPromise; |
no test coverage detected