choco

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const ManagerName = "Chocolatey"

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	HideActions bool
	// contains filtered or unexported fields
}

TODO:Document this.

func Connect

func Connect() *Manager

NOTE:Choco is fucking slow.

func (*Manager) Exists

func (m *Manager) Exists() bool

func (*Manager) Install

func (m *Manager) Install(pkgs ...pkg.Packager) error

func (*Manager) InstallByName

func (m *Manager) InstallByName(pkgs ...string) error

func (*Manager) InstallManager

func (m *Manager) InstallManager() error

func (*Manager) IsInLocal

func (m *Manager) IsInLocal(p pkg.Packager) bool

func (*Manager) IsInRepo

func (m *Manager) IsInRepo(pkg pkg.Packager) bool

func (*Manager) IsInstalled

func (m *Manager) IsInstalled() bool

func (*Manager) LocalPkgByName

func (m *Manager) LocalPkgByName(name string) (pkg.Packager, error)

func (*Manager) LocalPkgs

func (m *Manager) LocalPkgs() ([]pkg.Packager, error)

func (*Manager) Name

func (m *Manager) Name() string

func (*Manager) RepoPkgByName

func (m *Manager) RepoPkgByName(name string) (pkg.Packager, error)

func (*Manager) RequireAdmin

func (m *Manager) RequireAdmin() bool

func (*Manager) SearchInLocal

func (m *Manager) SearchInLocal(p string) ([]pkg.Packager, error)

func (*Manager) SearchInRepo

func (m *Manager) SearchInRepo(pkgName string) ([]pkg.Packager, error)

func (*Manager) Uninstall

func (m *Manager) Uninstall(pkgs ...pkg.Packager) error

func (*Manager) UninstallByName

func (m *Manager) UninstallByName(pkgs ...string) error

func (*Manager) Version

func (m *Manager) Version() string

type Package

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

TODO:Document this.

func (*Package) ExistsManager

func (p *Package) ExistsManager() bool

func (*Package) Install

func (p *Package) Install() error

func (*Package) Installed

func (p *Package) Installed() bool

func (*Package) Local

func (p *Package) Local() bool

func (*Package) Manager

func (p *Package) Manager() pkg.Managerer

func (*Package) Name

func (p *Package) Name() string

func (*Package) Reinstall

func (p *Package) Reinstall() error

func (*Package) Repo

func (p *Package) Repo() bool

func (*Package) Uninstall

func (p *Package) Uninstall() error

func (*Package) Version

func (p *Package) Version() string

Jump to

Keyboard shortcuts

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