runner

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NoUpdatePolicy    = GetUpdatePolicy("")
	UpdatePolicy      = GetUpdatePolicy("-u")
	UpdatePatchPolicy = GetUpdatePolicy("-u=patch")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GetUpdatePolicy

type GetUpdatePolicy string

type Runnable

type Runnable interface {
	ModInit(moduleName string) error
	List(args ...string) (string, error)
	GetD(update GetUpdatePolicy, packages ...string) error
	Build(pkg, out string) error
}

type Runner

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

Runner allows to run certain commands against module aware Go CLI.

func NewRunner

func NewRunner(ctx context.Context, insecure bool, goCmd string) (*Runner, error)

NewRunner checks Go version compatibility then returns Runner.

func (*Runner) Verbose

func (r *Runner) Verbose()

func (*Runner) With

func (r *Runner) With(ctx context.Context, modFile string, dir string) Runnable

With returns runner that will be ran against give modFile (if any) and in given directory (if any).

Jump to

Keyboard shortcuts

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