Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions src/prompt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,17 @@ export const gatherDetails = (initialOptions: Options): Promise<OptionValues> =>
},
{
type: 'text',
name: 'repo',
message: `What is the repository URL for your plugin?\n`,
validate: VALIDATORS.repo,
name: 'author',
message: `${kleur.reset('(optional)')} ${kleur.bold('Who is the author of this plugin?')}\n`,
validate: VALIDATORS.author,
format: (value) => value.trim(),
},
{
type: 'text',
name: 'author',
message: `${kleur.reset('(optional)')} ${kleur.bold('Who is the author of this plugin?')}\n`,
validate: VALIDATORS.author,
name: 'repo',
message: `What is the repository URL for your plugin?\n`,
initial: (_prev, values) => `https://github.com/${values.author}/${values.dir}`,
validate: VALIDATORS.repo,
format: (value) => value.trim(),
},
{
Expand Down