Documentation ¶
Index ¶
- func WithConfigPath(path string) func(*WorkspaceManager)
- func WithEditor(editor string, visual string) func(*WorkspaceManager)
- func WithShellPath(shell string) func(*WorkspaceManager)
- type Function
- type Workspace
- type WorkspaceManager
- func (s WorkspaceManager) Edit(name string) error
- func (s WorkspaceManager) EditEnv(name string, env string) error
- func (s WorkspaceManager) Get(name string) (Workspace, error)
- func (s WorkspaceManager) List() ([]Workspace, error)
- func (s WorkspaceManager) Load(name string, env string) error
- func (s WorkspaceManager) Remove(name string) error
- func (s WorkspaceManager) RunFunction(name string, env string, functionAndArgs []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 WorkspaceManager ¶
type WorkspaceManager struct {
// contains filtered or unexported fields
}
func NewWorkspaceManager ¶
func NewWorkspaceManager(options ...func(*WorkspaceManager)) (WorkspaceManager, error)
func (WorkspaceManager) Edit ¶
func (s WorkspaceManager) Edit(name string) error
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.