feat(cli): add failover management commands#165
Open
unive3sal wants to merge 1 commit intoSaladDay:mainfrom
Open
feat(cli): add failover management commands#165unive3sal wants to merge 1 commit intoSaladDay:mainfrom
unive3sal wants to merge 1 commit intoSaladDay:mainfrom
Conversation
Add a scriptable failover command group for toggling automatic failover and managing provider queue state without requiring TUI access. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a scriptable failover command group for toggling automatic failover and managing provider queue state without requiring TUI access.
It contains sub-CLI group "cc-switch failover":
`
Manage automatic failover and provider queue
Usage: cc-switch failover [OPTIONS]
Commands:
show Show automatic failover status and queue
enable Enable automatic failover for the selected app
disable Disable automatic failover for the selected app
list List queued failover providers
available List providers that can be added to the failover queue
add Add a provider to the failover queue
remove Remove a provider from the failover queue
move Move a queued provider up or down
clear Clear the failover queue
help Print this message or the help of the given subcommand(s)
Options:
-a, --app Specify the application type [possible values: claude, codex, gemini, open-code, open-claw]
-v, --verbose Enable verbose output
-h, --help Print help
`
Fixes #162