workspace

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(dir string, name string) error

func EnsureMetadataDir

func EnsureMetadataDir(dir string) (string, error)

func GetActiveWithMetadata

func GetActiveWithMetadata(dir string) (*Workspace, *Metadata, error)

func SaveMetadata

func SaveMetadata(dir string, m *Metadata) error

Types

type Metadata

type Metadata struct {
	Workspaces []*Workspace `json:"workspaces"`
	Active     string       `json:"active"`
}

type Workspace

type Workspace struct {
	Name       string `json:"name"`
	RemoteType string `json:"remoteType"`
}

func GetActive

func GetActive(dir string) (*Workspace, error)

func List

func List(dir string) ([]*Workspace, error)

func New

func New(dir string, name string) (*Workspace, error)

func SetActive

func SetActive(dir string, name string) (*Workspace, error)

Jump to

Keyboard shortcuts

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