workspace

package
v0.0.0-...-38a27b5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithConfigPath

func WithConfigPath(path string) func(*WorkspaceManager)

func WithEditor

func WithEditor(editor string, visual string) func(*WorkspaceManager)

func WithShellPath

func WithShellPath(shell string) func(*WorkspaceManager)

Types

type Function

type Function struct {
	Name        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(options ...func(*WorkspaceManager)) (WorkspaceManager, error)

func (WorkspaceManager) Create

func (s WorkspaceManager) Create(name string) error

func (WorkspaceManager) CreateEnv

func (s WorkspaceManager) CreateEnv(name string, env string) 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