config

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package config provides configuration management for the workspace CLI.

Index

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"`
	Initialized     bool     `json:"initialized"`
}

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) IsInitialized added in v0.0.4

func (cm *ConfigManager) IsInitialized() bool

IsInitialized checks if the workspace has been initialized

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) SetInitialized added in v0.0.4

func (cm *ConfigManager) SetInitialized(initialized bool) error

SetInitialized sets the initialized flag and saves the config

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

func (*ConfigManager) UpdateConfig added in v0.0.4

func (cm *ConfigManager) UpdateConfig(workspacesDir, reposDir, claudeDir string) error

UpdateConfig updates multiple config values and saves

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL