Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigPath ¶
ConfigPath returns the path to contextspectre.json within the given claude dir.
Types ¶
type Alias ¶
type Alias struct {
Paths []string `json:"paths"`
}
Alias maps a logical project name to one or more filesystem paths.
type Config ¶
type Config struct {
Version int `json:"version"`
Aliases map[string]Alias `json:"aliases"`
CostAlertThreshold float64 `json:"cost_alert_threshold,omitempty"`
WeeklyBudgetLimit float64 `json:"weekly_budget_limit,omitempty"`
WeeklyLimit float64 `json:"weekly_limit,omitempty"`
BillingWeekStart string `json:"billing_week_start,omitempty"`
ExpertMode bool `json:"expert_mode,omitempty"`
HealthContextWarn float64 `json:"health_context_warn,omitempty"`
HealthCPDWarn float64 `json:"health_cpd_warn,omitempty"`
HealthTTCWarn int `json:"health_ttc_warn,omitempty"`
HealthCDRWarn float64 `json:"health_cdr_warn,omitempty"`
}
Config holds the contextspectre configuration file.
func (*Config) RemoveAlias ¶
RemoveAlias removes an alias by name.
func (*Config) Resolve ¶
Resolve returns the paths for a given alias name. Returns nil if not found.
func (*Config) SetAlias ¶
SetAlias adds or updates an alias. Validates name format and that paths exist.
func (*Config) SortedNames ¶
SortedNames returns alias names in sorted order.
Click to show internal directories.
Click to hide internal directories.