refactor(commands): split CLI commands
This commit is contained in:
15
src/commands/configure.commands.ts
Normal file
15
src/commands/configure.commands.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import type { RuntimeEnv } from "../runtime.js";
|
||||
import { defaultRuntime } from "../runtime.js";
|
||||
import type { WizardSection } from "./configure.shared.js";
|
||||
import { runConfigureWizard } from "./configure.wizard.js";
|
||||
|
||||
export async function configureCommand(runtime: RuntimeEnv = defaultRuntime) {
|
||||
await runConfigureWizard({ command: "configure" }, runtime);
|
||||
}
|
||||
|
||||
export async function configureCommandWithSections(
|
||||
sections: WizardSection[],
|
||||
runtime: RuntimeEnv = defaultRuntime,
|
||||
) {
|
||||
await runConfigureWizard({ command: "configure", sections }, runtime);
|
||||
}
|
||||
Reference in New Issue
Block a user