Documentation
¶
Overview ¶
Package config provides configuration loading from TOML files and CLI flags.
Index ¶
Constants ¶
View Source
const ( CostAuto = "auto" CostOn = "true" CostOff = "false" )
Cost mode values.
Variables ¶
This section is empty.
Functions ¶
func NormalizeCostMode ¶ added in v1.0.0
NormalizeCostMode converts various user inputs to a canonical cost mode. Accepts: "auto", "true"/"1"/"on", "false"/"0"/"off". Returns "" for unknown values.
Types ¶
type Cache ¶
type Cache struct {
UsageTTL time.Duration `mapstructure:"usage_ttl"`
StatusTTL time.Duration `mapstructure:"status_ttl"`
}
Cache controls cache TTL durations.
type Config ¶
type Config struct {
Segments Segments `mapstructure:"segments"`
Cache Cache `mapstructure:"cache"`
MacInsecure bool `mapstructure:"mac_insecure"`
}
Config holds all claudeline configuration.
type Segments ¶
type Segments struct {
Model bool `mapstructure:"model"`
Effort bool `mapstructure:"effort"`
Thinking bool `mapstructure:"thinking"`
FastMode bool `mapstructure:"fast_mode"`
Worktree bool `mapstructure:"worktree"`
Cost string `mapstructure:"cost"`
Status bool `mapstructure:"status"`
Context bool `mapstructure:"context"`
Compactions bool `mapstructure:"compactions"`
Quota bool `mapstructure:"quota"`
PerModelQuota bool `mapstructure:"per_model_quota"`
Credits bool `mapstructure:"credits"`
OffPeak bool `mapstructure:"offpeak"`
}
Segments controls which statusline segments are displayed.
Click to show internal directories.
Click to hide internal directories.