Builds a text input wizard step, with optional (possibly async) validation.
inputStep({ prompt: 'Enter branch name', validate: (v) => (/^[a-z0-9-]+$/.test(v) ? undefined : 'Lowercase letters, numbers and hyphens only'),}); Copy
inputStep({ prompt: 'Enter branch name', validate: (v) => (/^[a-z0-9-]+$/.test(v) ? undefined : 'Lowercase letters, numbers and hyphens only'),});
Builds a text input wizard step, with optional (possibly async) validation.