mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 23:30:44 +00:00
feat(onboard): add skip bootstrap flag (#71218)
This commit is contained in:
@@ -133,6 +133,16 @@ describe("registerOnboardCommand", () => {
|
||||
);
|
||||
});
|
||||
|
||||
it("forwards --skip-bootstrap to setup wizard options", async () => {
|
||||
await runCli(["onboard", "--skip-bootstrap"]);
|
||||
expect(setupWizardCommandMock).toHaveBeenCalledWith(
|
||||
expect.objectContaining({
|
||||
skipBootstrap: true,
|
||||
}),
|
||||
runtime,
|
||||
);
|
||||
});
|
||||
|
||||
it("parses --mistral-api-key and forwards mistralApiKey", async () => {
|
||||
await runCli(["onboard", "--mistral-api-key", "sk-mistral-test"]);
|
||||
expect(setupWizardCommandMock).toHaveBeenCalledWith(
|
||||
|
||||
@@ -133,6 +133,7 @@ export function registerOnboardCommand(program: Command) {
|
||||
.option("--daemon-runtime <runtime>", "Daemon runtime: node|bun")
|
||||
.option("--skip-channels", "Skip channel setup")
|
||||
.option("--skip-skills", "Skip skills setup")
|
||||
.option("--skip-bootstrap", "Skip creating default agent workspace files")
|
||||
.option("--skip-search", "Skip search provider setup")
|
||||
.option("--skip-health", "Skip health check")
|
||||
.option("--skip-ui", "Skip Control UI/TUI prompts")
|
||||
@@ -189,6 +190,7 @@ export function registerOnboardCommand(program: Command) {
|
||||
daemonRuntime: opts.daemonRuntime as GatewayDaemonRuntime | undefined,
|
||||
skipChannels: Boolean(opts.skipChannels),
|
||||
skipSkills: Boolean(opts.skipSkills),
|
||||
skipBootstrap: Boolean(opts.skipBootstrap),
|
||||
skipSearch: Boolean(opts.skipSearch),
|
||||
skipHealth: Boolean(opts.skipHealth),
|
||||
skipUi: Boolean(opts.skipUi),
|
||||
|
||||
Reference in New Issue
Block a user