()
| 23 | }; |
| 24 | |
| 25 | const checkConfig = () => { |
| 26 | if (api.exists()) { |
| 27 | return true; |
| 28 | } |
| 29 | let msg = chalk.red(`Error! Config file not found: ${api.configPath}\n`); |
| 30 | msg += 'Please launch Hyper and retry.'; |
| 31 | console.error(msg); |
| 32 | process.exit(1); |
| 33 | }; |
| 34 | |
| 35 | const columnify = (data: {name: string; description: string}[]) => { |
| 36 | const maxNameLength = Math.max(...data.map((entry) => entry.name.length), 0); |