Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
QuipAPIToken string `json:"quip_api_token" yaml:"quip_api_token"`
}
Config represents the application configuration
type ConfigManager ¶
type ConfigManager struct {
// contains filtered or unexported fields
}
ConfigManager handles loading and saving configuration
func (*ConfigManager) GetConfigPath ¶
func (cm *ConfigManager) GetConfigPath() string
GetConfigPath returns the path to the configuration file
func (*ConfigManager) HasValidToken ¶
func (cm *ConfigManager) HasValidToken() bool
HasValidToken checks if a valid token is available
func (*ConfigManager) Load ¶
func (cm *ConfigManager) Load() (*Config, error)
Load loads configuration from file and environment
func (*ConfigManager) Save ¶
func (cm *ConfigManager) Save(config *Config) error
Save saves the configuration to file
func (*ConfigManager) SetupInteractive ¶
func (cm *ConfigManager) SetupInteractive() error
SetupInteractive prompts the user to configure the API token
Click to show internal directories.
Click to hide internal directories.