refactor(cli): move commands to a separate folder
This commit is contained in:
parent
4f8fb441f8
commit
d4d87036df
3 changed files with 11 additions and 11 deletions
|
|
@ -70,7 +70,7 @@ Examples:
|
|||
const plugins = [...(config.plugins ?? []), ...(values.plugin ?? [])];
|
||||
|
||||
try {
|
||||
const { default: upCommand } = await import('./up-command.js');
|
||||
const { default: upCommand } = await import('./commands/up.js');
|
||||
await upCommand({ storage, reporter, directory, plugins, dry });
|
||||
} catch (error) {
|
||||
if (error instanceof ShowUsageError) {
|
||||
|
|
@ -160,7 +160,7 @@ Examples:
|
|||
const name = positionals.join(' ').trim();
|
||||
|
||||
try {
|
||||
const { default: newCommand } = await import('./new-command.js');
|
||||
const { default: newCommand } = await import('./commands/new.js');
|
||||
await newCommand({ directory, template, plugins, extension, reporter }, name);
|
||||
} catch (error) {
|
||||
if (error instanceof ShowUsageError) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue