refactor(cli): re-use the Config type for the new command's parameters
This commit is contained in:
parent
0b78d5cf32
commit
70d2140dde
2 changed files with 4 additions and 11 deletions
|
|
@ -124,7 +124,7 @@ Examples:
|
|||
|
||||
try {
|
||||
const { default: newCommand } = await import('./new-command.js');
|
||||
await newCommand({ directory, template, plugins, name, extension });
|
||||
await newCommand({ directory, template, plugins, extension }, name);
|
||||
} catch (error) {
|
||||
if (error instanceof ShowUsageError) {
|
||||
console.error(error.message, '\n');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue