workspace

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2026 License: EUPL-1.2 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddWorkspaceCommands

func AddWorkspaceCommands(root *cobra.Command)

func FindWorkspaceRoot

func FindWorkspaceRoot() (string, error)

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).

Jump to

Keyboard shortcuts

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