config

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 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"`
}

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

Jump to

Keyboard shortcuts

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