mirror of
https://github.com/Routstr/routstrd.git
synced 2026-07-22 12:22:20 +00:00
feat: add --goose flag to clients add command
Adds --goose as a CLI option alongside the existing integration flags:
- src/cli.ts: adds .option('--goose') and goose type to action options
- src/utils/clients.ts: adds goose to AddClientOptions, integration key
mapping, and help text
This commit is contained in:
@@ -821,6 +821,7 @@ clientsCmd
|
||||
.option("--pi-agent", "Set up Pi Agent integration")
|
||||
.option("--claude-code", "Set up Claude Code integration")
|
||||
.option("--hermes", "Set up Hermes integration")
|
||||
.option("--goose", "Set up Goose integration")
|
||||
.action(
|
||||
async (options: {
|
||||
name?: string;
|
||||
@@ -829,6 +830,7 @@ clientsCmd
|
||||
piAgent?: boolean;
|
||||
claudeCode?: boolean;
|
||||
hermes?: boolean;
|
||||
goose?: boolean;
|
||||
}) => {
|
||||
await addClientAction(options);
|
||||
},
|
||||
|
||||
@@ -188,6 +188,7 @@ export interface AddClientOptions {
|
||||
piAgent?: boolean;
|
||||
claudeCode?: boolean;
|
||||
hermes?: boolean;
|
||||
goose?: boolean;
|
||||
}
|
||||
|
||||
export async function addClientAction(options: AddClientOptions): Promise<void> {
|
||||
@@ -200,6 +201,7 @@ export async function addClientAction(options: AddClientOptions): Promise<void>
|
||||
if (options.piAgent) integrationKeys.push("pi-agent");
|
||||
if (options.claudeCode) integrationKeys.push("claude-code");
|
||||
if (options.hermes) integrationKeys.push("hermes");
|
||||
if (options.goose) integrationKeys.push("goose");
|
||||
|
||||
if (integrationKeys.length > 0) {
|
||||
for (const key of integrationKeys) {
|
||||
@@ -243,6 +245,7 @@ export async function addClientAction(options: AddClientOptions): Promise<void>
|
||||
console.error(" --pi-agent Set up Pi Agent integration");
|
||||
console.error(" --claude-code Set up Claude Code integration");
|
||||
console.error(" --hermes Set up Hermes integration");
|
||||
console.error(" --goose Set up Goose integration");
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user