MCPcopy Index your code
hub / github.com/loopbackio/loopback-next / validateExampleName

Method validateExampleName

packages/cli/generators/example/index.js:128–138  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

126 }
127
128 validateExampleName() {
129 if (this.shouldExit()) return;
130 if (this.exampleName in EXAMPLES) return;
131 this.exit(
132 g.f(
133 'Invalid example name: %s\n' +
134 'Run "lb4 example --help" to print the list of available example names.',
135 this.exampleName,
136 ),
137 );
138 }
139
140 async downloadAndExtract() {
141 if (this.shouldExit()) return false;

Callers

nothing calls this directly

Calls 2

shouldExitMethod · 0.80
exitMethod · 0.80

Tested by

no test coverage detected