workspace

package
v0.0.0-...-e4b5158 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Function

type Function struct {
	Function    string
	Description string
}

type Workspace

type Workspace struct {
	Name      string
	Functions []Function
	Envs      []string
}

type WorkspaceManager

type WorkspaceManager struct {
	// contains filtered or unexported fields
}

func NewWorkspaceManager

func NewWorkspaceManager() (WorkspaceManager, error)

func (WorkspaceManager) Edit

func (s WorkspaceManager) Edit(name string) error

func (WorkspaceManager) EditEnv

func (s WorkspaceManager) EditEnv(name string, env string) error

func (WorkspaceManager) Get

func (s WorkspaceManager) Get(name string) (Workspace, error)

func (WorkspaceManager) List

func (s WorkspaceManager) List() ([]Workspace, error)

func (WorkspaceManager) Load

func (s WorkspaceManager) Load(name string, env string) error

func (WorkspaceManager) Remove

func (s WorkspaceManager) Remove(name string) error

func (WorkspaceManager) RunFunction

func (s WorkspaceManager) RunFunction(name string, env string, functionAndArgs []string) error

Jump to

Keyboard shortcuts

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