MCPcopy
hub / github.com/coder/mux / invalidGoalBodyArgs

Function invalidGoalBodyArgs

src/browser/utils/slashCommands/registry.ts:472–476  ·  view source on GitHub ↗
(
  body: string
)

Source from the content-addressed store, hash-verified

470const GOAL_BUDGET_USAGE = "/goal budget <amount>";
471
472function invalidGoalBodyArgs(
473 body: string
474): Extract<ParsedCommand, { type: "command-invalid-args" }> {
475 return { type: "command-invalid-args", command: "goal", input: body, usage: GOAL_USAGE };
476}
477
478function unknownGoalFlag(flag: string): Extract<ParsedCommand, { type: "command-unknown-flag" }> {
479 return { type: "command-unknown-flag", command: "goal", flag, usage: GOAL_USAGE };

Callers 1

registry.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected