manager

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CantFindExactVersionMatchError

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

func (*CantFindExactVersionMatchError) Error

type Manager

type Manager struct {
	DefaultRegistry string
	// contains filtered or unexported fields
}

func NewManager

func NewManager() *Manager

NewManager returns a new default Manager.

func (*Manager) GetInstalledCommands

func (mgr *Manager) GetInstalledCommands(paths context.Paths) []dependency.DependenciesIndexEntry

GetInstalledCommands returns all the dependencies that are installed locally (both globally and within project scope). paths are the source of global and project install directories.

func (*Manager) GetUpdateFor

func (mgr *Manager) GetUpdateFor(dep dependency.Dependency) (Updates, error)

GetUpdateFor gets updates for given dependency dep. If error doesn't occur, both major and minor updates are returned.

func (*Manager) InstallDependency

func (mgr *Manager) InstallDependency(dep *dependency.Dependency, installDir string) error

InstallDependency installs a single dependency in the installDir directory. Dependency metadata is provided in dep.

func (*Manager) RemoveDependency

func (mgr *Manager) RemoveDependency(dep *dependency.Dependency, installDir string) error

RemoveDependency removes a single dependency in the installDir directory. Dependency metadata is provided in dep.

type Updates

type Updates struct {
	NonBreaking string
	Breaking    string
}

Jump to

Keyboard shortcuts

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