Documentation ¶
Index ¶
- Variables
- func WorkspaceNameValidator(cmd interface{}) error
- type Manager
- func (m Manager) Add(workspace formula.Workspace) error
- func (m Manager) CurrentHash(formulaPath string) (string, error)
- func (m Manager) Delete(workspace formula.Workspace) error
- func (m Manager) List() (formula.Workspaces, error)
- func (m Manager) PreviousHash(formulaPath string) (string, error)
- func (m Manager) Update(workspace formula.Workspace) error
- func (m Manager) UpdateHash(formulaPath string, hash string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidWorkspace = prompt.NewError("the formula workspace does not exist, please enter a valid workspace") ErrInvalidWorkspaceName = prompt.NewError(`the workspace name must not contain spaces or invalid characters (\/><,@#%!&*()=+§£¢¬ªº°"^~;.?)`) ErrInvalidWorkspaceNameType = prompt.NewError("the input type is invalid for the workspace name") )
Functions ¶
func WorkspaceNameValidator ¶
func WorkspaceNameValidator(cmd interface{}) error
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func New ¶
func New( ritchieHome string, userHome string, dirManager stream.DirCreateHasher, local builder.Initializer, tree formula.TreeGenerator, ) Manager
Click to show internal directories.
Click to hide internal directories.