Add `reviq completions bash/zsh` command with dynamic shell completions: - Create bash-complete.ts entry point using stricli's proposeCompletions API - Add completions command with bash and zsh support (fish planned) - Extract app export to separate app.ts for shared imports - Add @stricli/auto-complete dependency and __reviq_bash_complete bin entry Also fix lint/type errors in api-server tests and helpers. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
20 lines
582 B
TypeScript
20 lines
582 B
TypeScript
import { buildRouteMap } from "@stricli/core";
|
|
import { authRouteMap } from "./auth/_command.js";
|
|
import { bootstrapCommand } from "./bootstrap.js";
|
|
import { completionsCommand } from "./completions.js";
|
|
import { orgRouteMap } from "./org/_command.js";
|
|
import { userRouteMap } from "./user/_command.js";
|
|
|
|
export const rootRouteMap = buildRouteMap({
|
|
routes: {
|
|
bootstrap: bootstrapCommand,
|
|
auth: authRouteMap,
|
|
user: userRouteMap,
|
|
org: orgRouteMap,
|
|
completions: completionsCommand,
|
|
},
|
|
docs: {
|
|
brief: "RevIQ CLI for database and user management",
|
|
},
|
|
});
|