Documentation
¶
Index ¶
- func WithConfigPath(path string) func(*WorkspaceManager)
- func WithEditor(editor string, visual string) func(*WorkspaceManager)
- func WithShellPath(shell string) func(*WorkspaceManager)
- type Commander
- type Env
- type Function
- type Functions
- type Workspace
- type WorkspaceManager
- func (s WorkspaceManager) BuildAliases(prefix string) ([]string, error)
- func (s WorkspaceManager) Create(name string, path string) error
- func (s WorkspaceManager) CreateEnv(name string, env string) error
- func (s WorkspaceManager) CreateEnvVariableStatement(name string, value string) string
- func (s WorkspaceManager) Edit(name string) error
- func (s WorkspaceManager) EditEnv(name string, env string) error
- func (s WorkspaceManager) Fix() error
- func (s WorkspaceManager) Get(name string) (Workspace, error)
- func (s WorkspaceManager) GetConfig(name string, key string) (string, error)
- func (s WorkspaceManager) GetConfigDir() string
- func (s WorkspaceManager) GetSupportedApps() []string
- func (s WorkspaceManager) List() ([]Workspace, error)
- func (s WorkspaceManager) Remove(name string) error
- func (s WorkspaceManager) RunFunction(name string, env string, functionAndArgs []string) error
- func (s WorkspaceManager) SetConfig(name string, kv map[string]string) error
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 Functions ¶
type Functions struct { Functions []Function // 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) 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) Fix ¶
func (s WorkspaceManager) Fix() 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
Click to show internal directories.
Click to hide internal directories.