Documentation
¶
Overview ¶
Package cli provides command-line interface setup and configuration for the totalrecall application. It handles flag parsing, command creation, and configuration management using cobra and viper.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateRootCommand ¶
CreateRootCommand creates and configures the root cobra command
func GetOpenAIKey ¶
func GetOpenAIKey() string
GetOpenAIKey retrieves the OpenAI API key from environment or config
Types ¶
type Flags ¶
type Flags struct {
// General flags
CfgFile string
OutputDir string
AudioFormat string
ImageAPI string
BatchFile string
SkipAudio bool
SkipImages bool
GenerateAnki bool
AnkiCSV bool
DeckName string
ListModels bool
AllVoices bool
NoAutoPlay bool
Archive bool
// OpenAI flags
OpenAIModel string
OpenAIVoice string
OpenAISpeed float64
OpenAIInstruction string
// OpenAI Image flags
OpenAIImageModel string
OpenAIImageSize string
OpenAIImageQuality string
OpenAIImageStyle string
}
Flags holds all command-line flag values
Click to show internal directories.
Click to hide internal directories.