Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddWorkspaceCommands ¶
func FindWorkspaceRoot ¶
FindWorkspaceRoot searches for the root directory containing .core/workspace.yaml.
func SaveConfig ¶
func SaveConfig(dir string, config *WorkspaceConfig) error
SaveConfig saves the configuration to the given directory's .core/workspace.yaml.
Types ¶
type WorkspaceConfig ¶
type WorkspaceConfig struct {
Version int `yaml:"version"`
Active string `yaml:"active"` // Active package name
DefaultOnly []string `yaml:"default_only"` // Default types for setup
PackagesDir string `yaml:"packages_dir"` // Where packages are cloned
}
WorkspaceConfig holds workspace-level configuration from .core/workspace.yaml.
func DefaultConfig ¶
func DefaultConfig() *WorkspaceConfig
DefaultConfig returns a config with default values.
func LoadConfig ¶
func LoadConfig(dir string) (*WorkspaceConfig, error)
LoadConfig tries to load workspace.yaml from the given directory's .core subfolder. Returns nil if no config file exists (caller should check for nil).
Click to show internal directories.
Click to hide internal directories.