cmd

package
v0.0.0-...-5c6e63f Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const AppName = "kai"

AppName - the name of the application.

Variables

View Source
var ProviderIds = map[ProviderType][]string{
	PhindProvider:      {"phind"},
	OpenAIProvider:     {"openai"},
	ClaudeProvider:     {"claude"},
	GoogleAIProvider:   {"googleai"},
	OpenRouterProvider: {"openrouter"},
	GroqProvider:       {"groq"},
	DeepSeekProvider:   {"deepseek"},
}

ProviderIds maps ProviderType to their string representations.

Functions

func Execute

func Execute()

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

Types

type BlameInfo

type BlameInfo struct {
	CommitHash string
	LineNumber int
}

BlameInfo contains information about who last modified a specific line

type CommitScore

type CommitScore struct {
	CommitHash string
	Score      int
	Lines      []int
}

CommitScore tracks how many lines a commit is responsible for

type LineRange

type LineRange struct {
	Start int
	End   int
}

LineRange represents a range of lines in a file that have been modified

type ProviderType

type ProviderType enumflag.Flag

ProviderType represents the supported LLM providers.

const (
	// PhindProvider represents the Phind provider.
	PhindProvider ProviderType = iota
	// OpenAIProvider represents the OpenAI provider.
	OpenAIProvider
	// ClaudeProvider represents the Claude provider.
	ClaudeProvider
	// GoogleAIProvider represents the GoogleAI provider.
	GoogleAIProvider
	// OpenRouterProvider represents the OpenRouter provider.
	OpenRouterProvider
	// GroqProvider represents the Groq provider.
	GroqProvider
	// DeepSeekProvider represents the DeepSeek provider.
	DeepSeekProvider
)

Jump to

Keyboard shortcuts

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