MCPcopy Create free account
hub / github.com/vercel/next-forge / validate

Function validate

scripts/initialize.ts:186–190  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

184 message: "What is your project named?",
185 placeholder: "my-app",
186 validate(value: string) {
187 if (value.length === 0) {
188 return "Please enter a project name.";
189 }
190 },
191 });
192
193 if (isCancel(value)) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected