workspace

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Workspace

type Workspace struct {
	RootPath     string
	WorkFilePath string
	Projects     []*models.Project
	// contains filtered or unexported fields
}

Workspace represents a Go workspace containing one or more Go projects.

func New

New creates a new Workspace instance.

func (*Workspace) ChangesetDir

func (w *Workspace) ChangesetDir() string

ChangesetDir returns the path to the .changeset directory.

func (*Workspace) Detect

func (w *Workspace) Detect() error

Detect finds and loads the workspace from the current directory.

func (*Workspace) GetProject

func (w *Workspace) GetProject(name string) (*models.Project, error)

GetProject returns a project by name.

func (*Workspace) GetProjectNames

func (w *Workspace) GetProjectNames() []string

GetProjectNames returns a list of all project names.

Jump to

Keyboard shortcuts

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