Documentation
¶
Index ¶
- func GetVersion() string
- func HandleCode(ctx context.Context, cfg *config.Config, args []string, opts CodeOptions) error
- func HandleDoctor(ctx context.Context, out io.Writer, cfg *config.Config, opts DoctorOptions) error
- func HandleProviders(out io.Writer, cfg *config.Config) error
- func HandleUpdate(ctx context.Context, out, errOut io.Writer, checkOnly bool) error
- type CodeOptions
- type DoctorOptions
- type ExitCodeError
- type ProviderChoice
- type ProviderSelector
- type TerminalProviderSelector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetVersion ¶
func GetVersion() string
GetVersion returns the ldflags-provided version, the installed module version, or "dev" for an untagged local build, in that order.
func HandleCode ¶
HandleCode resolves a provider, sets up the environment, and execs Claude Code with all non-CCL arguments passed through unchanged.
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 CodeOptions ¶ added in v0.5.1
CodeOptions contains the launcher's process streams.
type DoctorOptions ¶ added in v0.5.1
DoctorOptions controls provider selection, output format, and network checks.
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.