Documentation
¶
Overview ¶
Package config provides configuration management for the workspace CLI.
Index ¶
- type Config
- type ConfigManager
- func (cm *ConfigManager) AddIgnoredBranch(pattern string) error
- func (cm *ConfigManager) ClearIgnoredBranches() error
- func (cm *ConfigManager) GetConfig() *Config
- func (cm *ConfigManager) GetConfigPath() string
- func (cm *ConfigManager) GetIgnoredBranches() []string
- func (cm *ConfigManager) RemoveIgnoredBranch(pattern string) error
- func (cm *ConfigManager) SetClaudeDir(dir string) error
- func (cm *ConfigManager) SetIgnoredBranches(patterns []string) error
- func (cm *ConfigManager) SetReposDir(dir string) error
- func (cm *ConfigManager) SetWorkspacesDir(dir string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
WorkspacesDir string `json:"workspaces_dir"`
ReposDir string `json:"repos_dir"`
ClaudeDir string `json:"claude_dir"`
IgnoredBranches []string `json:"ignored_branches,omitempty"`
}
Config represents the workspace configuration
type ConfigManager ¶
type ConfigManager struct {
// contains filtered or unexported fields
}
ConfigManager handles configuration operations
func NewConfigManager ¶
func NewConfigManager() (*ConfigManager, error)
NewConfigManager creates a new configuration manager
func (*ConfigManager) AddIgnoredBranch ¶
func (cm *ConfigManager) AddIgnoredBranch(pattern string) error
AddIgnoredBranch adds a branch pattern to the ignore list
func (*ConfigManager) ClearIgnoredBranches ¶
func (cm *ConfigManager) ClearIgnoredBranches() error
ClearIgnoredBranches clears all ignored branch patterns
func (*ConfigManager) GetConfig ¶
func (cm *ConfigManager) GetConfig() *Config
GetConfig returns the current configuration
func (*ConfigManager) GetConfigPath ¶
func (cm *ConfigManager) GetConfigPath() string
GetConfigPath returns the configuration file path
func (*ConfigManager) GetIgnoredBranches ¶
func (cm *ConfigManager) GetIgnoredBranches() []string
GetIgnoredBranches returns the list of ignored branch patterns
func (*ConfigManager) RemoveIgnoredBranch ¶
func (cm *ConfigManager) RemoveIgnoredBranch(pattern string) error
RemoveIgnoredBranch removes a branch pattern from the ignore list
func (*ConfigManager) SetClaudeDir ¶
func (cm *ConfigManager) SetClaudeDir(dir string) error
SetClaudeDir sets the claude directory
func (*ConfigManager) SetIgnoredBranches ¶
func (cm *ConfigManager) SetIgnoredBranches(patterns []string) error
SetIgnoredBranches sets the entire list of ignored branches
func (*ConfigManager) SetReposDir ¶
func (cm *ConfigManager) SetReposDir(dir string) error
SetReposDir sets the repos directory
func (*ConfigManager) SetWorkspacesDir ¶
func (cm *ConfigManager) SetWorkspacesDir(dir string) error
SetWorkspacesDir sets the workspaces directory