feat: add docs search command

This commit is contained in:
Peter Steinberger committed 2026-01-07 02:03:06 +01:00
1 parent e816991dc5
commit 1ae5e9a26b
5 files changed
+206 -5

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
import type { Command } from "commander";
import { docsSearchCommand } from "../commands/docs.js";
import { defaultRuntime } from "../runtime.js";
export function registerDocsCli(program: Command) {
program
.command("docs")
.description("Search the live Clawdbot docs")
.argument("[query...]", "Search query")
.action(async (queryParts: string[]) => {
try {
await docsSearchCommand(queryParts, defaultRuntime);
} catch (err) {
defaultRuntime.error(String(err));
defaultRuntime.exit(1);
}
});
}