Documentation
¶
Index ¶
- func GetVersion() string
- func HandleCode(cmd *cobra.Command, args []string) error
- func HandleDoctor(cmd *cobra.Command, _ []string) error
- func HandleProviders(cmd *cobra.Command, _ []string) error
- func HandleUpdate(cmd *cobra.Command, _ []string) error
- type ExitCodeError
- type ProviderChoice
- type ProviderSelector
- type TerminalProviderSelector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleCode ¶
HandleCode is the root command's runner: resolves a provider, sets up the environment, and execs claude. Help handling is manual because the root command uses DisableFlagParsing for transparent flag passthrough.
func HandleDoctor ¶ added in v0.5.0
HandleDoctor runs preflight diagnostics for the selected provider(s).
func HandleProviders ¶ added in v0.3.2
HandleProviders prints the configured providers as a table, marking the default and showing whether each has auth credentials available.
Types ¶
type ExitCodeError ¶ added in v0.5.0
ExitCodeError carries an intended process exit code alongside a message. cmd/ccl/main.go exits 1 on any non-nil Execute() error; Code is reserved for future per-code handling.
func (*ExitCodeError) Error ¶ added in v0.5.0
func (e *ExitCodeError) Error() string
type ProviderChoice ¶ added in v0.5.0
ProviderChoice is one selectable provider row.
type ProviderSelector ¶ added in v0.5.0
type ProviderSelector interface {
SelectProvider(ctx context.Context, choices []ProviderChoice, current string) (string, error)
}
ProviderSelector chooses a provider from the configured provider list.
type TerminalProviderSelector ¶ added in v0.5.0
TerminalProviderSelector selects providers with a simple stdin/stdout prompt.
func (TerminalProviderSelector) SelectProvider ¶ added in v0.5.0
func (s TerminalProviderSelector) SelectProvider(ctx context.Context, choices []ProviderChoice, current string) (string, error)
SelectProvider prompts for one provider name.