()
| 25 | |
| 26 | // Helper method used to confirm the run |
| 27 | const confirmRun = async () => { |
| 28 | const { envName } = getEnvInfo() |
| 29 | log(`About to execute the command in ${chalk.bold.red(envName)} environment.`) |
| 30 | |
| 31 | const { sure } = await prompt.get([ |
| 32 | { |
| 33 | name: "sure", |
| 34 | description: "Are you sure? (y/n)", |
| 35 | type: "string", |
| 36 | required: true, |
| 37 | }, |
| 38 | ]) |
| 39 | |
| 40 | if (sure !== "y") { |
| 41 | log(chalk.bold.red("Command aborted!\n")) |
| 42 | process.exit(1) |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | if (!process.argv[2]) { |
| 47 | chalk.red("Missing command to run argument") |
no test coverage detected
searching dependent graphs…