workspace

package
v0.0.0-...-873fb03 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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

func (Manager) Add

func (m Manager) Add(workspace formula.Workspace) error

func (Manager) CurrentHash

func (m Manager) CurrentHash(formulaPath string) (string, error)

func (Manager) Delete

func (m Manager) Delete(workspace formula.Workspace) error

func (Manager) List

func (m Manager) List() (formula.Workspaces, error)

func (Manager) PreviousHash

func (m Manager) PreviousHash(formulaPath string) (string, error)

func (Manager) Update

func (m Manager) Update(workspace formula.Workspace) error

func (Manager) UpdateHash

func (m Manager) UpdateHash(formulaPath string, hash string) error

Jump to

Keyboard shortcuts

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