workspace

package
v0.0.0-...-5cc3201 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2025 License: MIT Imports: 14 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 Commander

type Commander interface {
	// contains filtered or unexported methods
}

type Env

type Env struct {
	Name string
	// contains filtered or unexported fields
}

type Function

type Function struct {
	Name        string
	Description string
}

type Functions

type Functions struct {
	Functions []Function
	// contains filtered or unexported fields
}

type Workspace

type Workspace struct {
	Name      string
	Functions Functions
	Envs      []Env
	Config    map[string]string
	// contains filtered or unexported fields
}

type WorkspaceManager

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

func NewWorkspaceManager

func NewWorkspaceManager(options ...func(*WorkspaceManager)) (WorkspaceManager, error)

func (WorkspaceManager) BuildAliases

func (s WorkspaceManager) BuildAliases(prefix string) ([]string, error)

func (WorkspaceManager) Create

func (s WorkspaceManager) Create(name string, path string) error

func (WorkspaceManager) CreateEnv

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

func (WorkspaceManager) CreateEnvVariableStatement

func (s WorkspaceManager) CreateEnvVariableStatement(name string, value string) string

func (WorkspaceManager) Edit

func (s WorkspaceManager) Edit(name string) error

func (WorkspaceManager) EditEnv

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

func (WorkspaceManager) Fix

func (s WorkspaceManager) Fix() error

func (WorkspaceManager) Get

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

func (WorkspaceManager) GetConfig

func (s WorkspaceManager) GetConfig(name string, key string) (string, error)

func (WorkspaceManager) GetConfigDir

func (s WorkspaceManager) GetConfigDir() string

func (WorkspaceManager) GetSupportedApps

func (s WorkspaceManager) GetSupportedApps() []string

func (WorkspaceManager) List

func (s WorkspaceManager) List() ([]Workspace, 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

func (WorkspaceManager) SetConfig

func (s WorkspaceManager) SetConfig(name string, kv map[string]string) error

Jump to

Keyboard shortcuts

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