(pluginName: string)
| 16 | let commandPromise: Promise<void> | undefined; |
| 17 | |
| 18 | const assertPluginName = (pluginName: string) => { |
| 19 | if (!pluginName) { |
| 20 | console.error(chalk.red('Plugin name is required')); |
| 21 | process.exit(1); |
| 22 | } |
| 23 | }; |
| 24 | |
| 25 | const checkConfig = () => { |
| 26 | if (api.exists()) { |