cmd

package
v1.7.3 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

store instance

Functions

func CleanupCache added in v1.6.0

func CleanupCache(Store *store.StoreMethods) error

CleanupCache removes old cached messages.

func ClearCache added in v1.6.0

func ClearCache(Store *store.StoreMethods) error

ClearCache removes all cached messages.

func CreateCommitMsg

func CreateCommitMsg(Store *store.StoreMethods, dryRun bool, autoCommit bool, verbose bool)

CreateCommitMsg launches the interactive flow for reviewing, regenerating, editing, and accepting AI-generated commit messages in the current repo. If dryRun is true, it displays the prompt without making an API call. If verbose is true, shows detailed diff statistics and processing info.

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func SetupLLM

func SetupLLM(Store *store.StoreMethods) error

SetupLLM walks the user through selecting an LLM provider and storing the corresponding API key or endpoint configuration.

func ShowCacheStats added in v1.6.0

func ShowCacheStats(Store *store.StoreMethods) error

ShowCacheStats displays cache statistics.

func StoreInit added in v1.3.35

func StoreInit(sm *store.StoreMethods)

Initailize store

func UpdateLLM

func UpdateLLM(Store *store.StoreMethods) error

UpdateLLM lets the user switch defaults, rotate API keys, or delete stored LLM provider configurations.

Types

This section is empty.

Directories

Path Synopsis
Package store persists user-selected LLM providers and credentials.
Package store persists user-selected LLM providers and credentials.

Jump to

Keyboard shortcuts

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