(generator?: string)
| 41 | } |
| 42 | |
| 43 | function validateGenerator(generator?: string) { |
| 44 | const generators = installedGenerators() |
| 45 | |
| 46 | if (!generators.includes(generator)) { |
| 47 | warning(`⚠️ Generator "${generator}" isn't installed.`) |
| 48 | p() |
| 49 | |
| 50 | if (availableGenerators().includes(generator)) { |
| 51 | direction("Install the generator with:") |
| 52 | p() |
| 53 | command(`npx ignite-cli generate ${generator} --update`) |
| 54 | p() |
| 55 | direction("... and then try again!") |
| 56 | } else { |
| 57 | direction("Check your spelling and try again") |
| 58 | } |
| 59 | |
| 60 | return false |
| 61 | } |
| 62 | |
| 63 | return true |
| 64 | } |
| 65 | |
| 66 | // eslint-disable-next-line @typescript-eslint/no-unused-vars |
| 67 | export function showGeneratorHelp(toolbox: GluegunToolbox) { |
no test coverage detected