handlers

package
v0.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetVersion

func GetVersion() string

GetVersion returns the build-time version string

func HandleCode

func HandleCode(cmd *cobra.Command, args []string) error

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 HandleProviders added in v0.3.2

func HandleProviders(cmd *cobra.Command, _ []string) error

HandleProviders prints the configured providers as a table, marking the default and showing whether each has auth credentials available.

func HandleUpdate added in v0.3.0

func HandleUpdate(cmd *cobra.Command, _ []string) error

HandleUpdate checks GitHub for a newer release and, unless --check was set, runs `go install` to update the binary.

func HandleUse added in v0.4.0

func HandleUse(cmd *cobra.Command, args []string) error

HandleUse persists the default provider to config.yaml.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL