refactor(cli): re-use the Config type for the new command's parameters

This commit is contained in:
Joakim Carlstein 2023-11-15 14:45:49 +01:00
parent 0b78d5cf32
commit 70d2140dde
2 changed files with 4 additions and 11 deletions

View file

@ -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');