goman

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const Name shared.ManagerName = "go"

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandExecutorFace

type CommandExecutorFace interface {
	Install(ctx context.Context, pkg shared.Package) error
	Remove(pkg shared.Package) error
	ListInstalled(ctx context.Context) (packages []shared.Package, err error)
	BinPath() (binPath string, err error)
	GetBinaryInfo(ctx context.Context, binaryPath string) (pkg shared.Package, err error)
}

type Go

type Go struct {
	CommandExecutorFace
}

func New

func New() *Go

func (*Go) AddDependencies

func (g *Go) AddDependencies(ctx context.Context, depsToAdd []string) (depsUpdated []string, userWarnings []string, err error)

func (*Go) AddPackages

func (g *Go) AddPackages(ctx context.Context, pkgsToAdd []string) (packagesUpdated []string, userWarnings []string, err error)

func (*Go) GetDependencyNames

func (g *Go) GetDependencyNames(ctx context.Context, deps []string) []string

func (*Go) GetPackageNames

func (g *Go) GetPackageNames(ctx context.Context, packages []string) []string

func (*Go) Icon

func (g *Go) Icon() string

func (*Go) InitCheckCmd

func (g *Go) InitCheckCmd() error

func (*Go) InitCheckConfig

func (g *Go) InitCheckConfig() error

func (*Go) InitConfig

func (g *Go) InitConfig()

func (*Go) InstallValidArgs

func (g *Go) InstallValidArgs(ctx context.Context, toComplete string, dependencies bool) ([]string, error)

func (*Go) ListDependencies

func (g *Go) ListDependencies(ctx context.Context, deps []string, stateDeps []string) (depStatus status.DependenciesStatus, err error)

func (*Go) ListPackages

func (g *Go) ListPackages(ctx context.Context, packages []string, statePkgs []string) (packageStatus status.PackageStatus, err error)

func (*Go) LongDesc

func (g *Go) LongDesc() string

func (*Go) Name

func (g *Go) Name() shared.ManagerName

func (*Go) NeedsSudo

func (g *Go) NeedsSudo() []shared.CommandName

func (*Go) RemoveDependencies

func (g *Go) RemoveDependencies(ctx context.Context, allDeps []string, depsToRemove []string) (depsUpdated []string, userWarnings []string, err error)

func (*Go) RemovePackages

func (g *Go) RemovePackages(ctx context.Context, allPkgs []string, pkgs []string) (packagesUpdated []string, userWarnings []string, err error)

func (*Go) ShortDesc

func (g *Go) ShortDesc() string

func (*Go) SyncDependencies

func (g *Go) SyncDependencies(ctx context.Context, depStatus status.DependenciesStatus) (userWarnings []string, err error)

func (*Go) SyncPackages

func (g *Go) SyncPackages(ctx context.Context, packageStatus status.PackageStatus) (userWarnings []string, err error)

Jump to

Keyboard shortcuts

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