workspace

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Settings

type Settings struct {
	GlobalFallback bool                     `toml:"global-fallback"`
	LocalInstalls  map[string]*localInstall `toml:"local-install"`
}

func DefaultSettings

func DefaultSettings() *Settings

func NewSettings

func NewSettings() *Settings

type Workspace

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

func Current

func Current() (*Workspace, error)

func New

func New(name string) *Workspace

func (*Workspace) ClearSrc

func (ws *Workspace) ClearSrc() error

func (*Workspace) InstallLocalPackage

func (ws *Workspace) InstallLocalPackage(pkg string, localPath string) error

func (*Workspace) InstallLocalPackagePersistently

func (ws *Workspace) InstallLocalPackagePersistently(pkg string, localPath string) error

func (*Workspace) InstallSavedLocalPackages added in v0.7.0

func (ws *Workspace) InstallSavedLocalPackages() error

func (*Workspace) LoadSettings

func (ws *Workspace) LoadSettings() (*Settings, error)

func (*Workspace) Name

func (ws *Workspace) Name() string

func (*Workspace) Path

func (ws *Workspace) Path() string

func (*Workspace) Pkg

func (ws *Workspace) Pkg() string

func (*Workspace) SaveSettings

func (ws *Workspace) SaveSettings(settings *Settings) error

func (*Workspace) Settings

func (ws *Workspace) Settings() (*Settings, error)

Settings returns the settings of the workspace

func (*Workspace) SettingsPath

func (ws *Workspace) SettingsPath() string

func (*Workspace) Src

func (ws *Workspace) Src() string

func (*Workspace) Uninstall

func (ws *Workspace) Uninstall(pkg string, logWriter io.Writer) error

func (*Workspace) UninstallAllLocalInstalls added in v0.9.0

func (ws *Workspace) UninstallAllLocalInstalls() error

func (*Workspace) UnpersistLocalInstall

func (ws *Workspace) UnpersistLocalInstall(pkg string) error

func (*Workspace) UpdateEnsureMarker

func (ws *Workspace) UpdateEnsureMarker() error

Jump to

Keyboard shortcuts

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