gocli

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoCLI

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

func New

func New(cmdRunner GoCmdRunner) GoCLI

func (*GoCLI) GetEnvVar

func (cli *GoCLI) GetEnvVar(name string) (string, error)

func (*GoCLI) UpgradePackage

func (cli *GoCLI) UpgradePackage(name string) (string, error)

type GoCmdRunner

type GoCmdRunner interface {
	RunGoCommand(args ...string) (string, error)
}

type RealGoCmdRunner

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

func NewCmdRunner

func NewCmdRunner(logger *zap.Logger) RealGoCmdRunner

func (*RealGoCmdRunner) RunGoCommand

func (runner *RealGoCmdRunner) RunGoCommand(args ...string) (string, error)

Jump to

Keyboard shortcuts

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