MCPcopy Index your code
hub / github.com/vercel/hyper / checkConfig

Function checkConfig

cli/index.ts:25–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23};
24
25const 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
35const columnify = (data: {name: string; description: string}[]) => {
36 const maxNameLength = Math.max(...data.map((entry) => entry.name.length), 0);

Callers 1

index.tsFile · 0.85

Calls 2

exitMethod · 0.80
errorMethod · 0.45

Tested by

no test coverage detected