pub fn handle_switch_command(alias_name: Option<&str>) -> Result<()>Expand description
Handle configuration switching command
Processes the switch subcommand to switch Claude API configuration:
- None: Enter interactive selection mode
- “cc”: Launch Claude without custom environment variables (default behavior)
- Other alias: Launch Claude with the specified configuration’s environment variables
After switching, displays the current URL and automatically launches Claude CLI
§Arguments
alias_name- Optional name of configuration to switch to, or “cc” for default
§Errors
Returns error if configuration is not found or Claude CLI fails to launch