Files
aicli/config/types.go
Jay 1936f055e2
All checks were successful
Release / release (push) Successful in 3m17s
Refactored, added comprehensive testing.
2025-10-26 23:23:43 -04:00

72 lines
1.0 KiB
Go

package config
type APIProtocol int
const (
ProtocolOpenAI APIProtocol = iota
ProtocolOllama
)
type ConfigData struct {
// Input
FilePaths []string
PromptFlags []string
PromptPaths []string
StdinAsFile bool
// System
SystemPrompt string
// API
Protocol APIProtocol
URL string
APIKey string
// Models
Model string
FallbackModels []string
// Output
Output string
Quiet bool
Verbose bool
}
type flagValues struct {
files []string
prompts []string
promptFile string
system string
systemFile string
key string
keyFile string
protocol string
url string
model string
fallback string
output string
config string
stdinFile bool
quiet bool
verbose bool
version bool
}
type envValues struct {
protocol string
url string
key string
model string
fallback string
system string
}
type fileValues struct {
protocol string
url string
keyFile string
model string
fallback string
systemFile string
}