MCPcopy Create free account
hub / github.com/CommonstackAI/UncommonRoute / _cmd_setup

Function _cmd_setup

uncommon_route/cli.py:1637–1656  ·  view source on GitHub ↗
(args: list[str])

Source from the content-addressed store, hash-verified

1635
1636
1637def _cmd_setup(args: list[str]) -> None:
1638 if not args:
1639 print("Usage: uncommon-route setup <client>", file=sys.stderr)
1640 print(" Available clients: claude-code, codex, openai", file=sys.stderr)
1641 print(" Tip: run `uncommon-route init` for guided setup", file=sys.stderr)
1642 sys.exit(1)
1643
1644 sub = args[0]
1645 handlers = {
1646 "claude-code": _setup_claude_code,
1647 "openai": _setup_openai,
1648 "codex": _setup_codex,
1649 }
1650 handler = handlers.get(sub)
1651 if handler:
1652 handler(args[1:])
1653 else:
1654 print(f"Unknown client: {sub}", file=sys.stderr)
1655 print(f" Available: {', '.join(handlers)}", file=sys.stderr)
1656 sys.exit(1)
1657
1658
1659def _detect_rc_file() -> str:

Callers

nothing calls this directly

Calls 2

handlerFunction · 0.50
getMethod · 0.45

Tested by

no test coverage detected