Documentation
¶
Index ¶
Constants ¶
View Source
const ( // DefaultConfigDir is the default configuration directory DefaultConfigDir = ".termonaut" // ConfigFileName is the configuration file name ConfigFileName = "config" // ConfigFileType is the configuration file type ConfigFileType = "toml" )
Variables ¶
This section is empty.
Functions ¶
func GetConfigDir ¶
func GetConfigDir() string
GetConfigDir returns the configuration directory path
func GetDataDir ¶
GetDataDir returns the data directory path from config
Types ¶
type Config ¶
type Config struct {
// Display and Theme
DisplayMode string `mapstructure:"display_mode"`
Theme string `mapstructure:"theme"`
ShowGamification bool `mapstructure:"show_gamification"`
// Tracking Behavior
IdleTimeoutMinutes int `mapstructure:"idle_timeout_minutes"`
TrackGitRepos bool `mapstructure:"track_git_repos"`
CommandCategories bool `mapstructure:"command_categories"`
// GitHub Integration (Optional)
SyncEnabled bool `mapstructure:"sync_enabled"`
SyncRepo string `mapstructure:"sync_repo"`
BadgeUpdateFrequency string `mapstructure:"badge_update_frequency"`
// Privacy
OptOutCommands []string `mapstructure:"opt_out_commands"`
AnonymousMode bool `mapstructure:"anonymous_mode"`
PrivacySanitizer bool `mapstructure:"privacy_sanitizer"`
SanitizePasswords bool `mapstructure:"sanitize_passwords"`
SanitizeURLs bool `mapstructure:"sanitize_urls"`
SanitizeFilePaths bool `mapstructure:"sanitize_file_paths"`
// Easter Eggs
EasterEggsEnabled bool `mapstructure:"easter_eggs_enabled"`
// Quick Stats on Empty Command
EmptyCommandStats bool `mapstructure:"empty_command_stats"`
// Avatar System
AvatarEnabled bool `mapstructure:"avatar_enabled"`
AvatarStyle string `mapstructure:"avatar_style"`
AvatarSize string `mapstructure:"avatar_size"`
AvatarColorSupport string `mapstructure:"avatar_color_support"`
AvatarCacheTTL string `mapstructure:"avatar_cache_ttl"`
// Internal
DataDir string `mapstructure:"data_dir"`
LogLevel string `mapstructure:"log_level"`
}
Config represents the application configuration
Click to show internal directories.
Click to hide internal directories.