Documentation
¶
Overview ¶
Package workspace manages multiple cloop projects registered in a global registry. The registry is stored in ~/.config/cloop/workspaces.json (respecting XDG_CONFIG_HOME).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Add ¶
Add registers a workspace with the given name and path. If a workspace with the same name already exists it is updated. The path is resolved to an absolute path before storing.
func GetActive ¶
func GetActive() string
GetActive returns the currently active workspace name, or "" if none is set.
func Remove ¶
Remove unregisters the workspace with the given name. Returns nil if the workspace does not exist (idempotent).
func ResolveWorkDir ¶
ResolveWorkDir returns the working directory for the given workspace name. If name is empty, the current working directory is returned.