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

Function assertPluginName

cli/index.ts:18–23  ·  view source on GitHub ↗
(pluginName: string)

Source from the content-addressed store, hash-verified

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

Callers 1

index.tsFile · 0.85

Calls 2

exitMethod · 0.80
errorMethod · 0.45

Tested by

no test coverage detected