Download shell-plugin/lib/actions/provider.zsh from SaylorTwift/forgecode: direct link, hf CLI and curl.
- Browser
- Download file 645 Bytes
-
https://huggingface.co/SaylorTwift/forgecode/resolve/main/shell-plugin/lib/actions/provider.zsh
- Command line
-
hf download hf://SaylorTwift/forgecode/shell-plugin/lib/actions/provider.zsh
-
curl -L -o provider.zsh https://huggingface.co/SaylorTwift/forgecode/resolve/main/shell-plugin/lib/actions/provider.zsh
645 Bytes
| # Provider selection action handlers | |
| # Action handler: Select the provider for the current session. | |
| # Sets _FORGE_SESSION_PROVIDER in the shell environment so that every | |
| # subsequent forge invocation uses that provider via --provider flag | |
| # without touching the permanent global configuration. | |
| function _forge_action_session_provider() { | |
| local input_text="$1" | |
| echo | |
| local selected | |
| selected=$(_forge_select_with_query "$input_text" provider) | |
| if [[ -n "$selected" ]]; then | |
| _FORGE_SESSION_PROVIDER="$selected" | |
| _forge_log success "Session provider set to \033[1m${selected}\033[0m" | |
| fi | |
| } | |