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"`
}
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.