download

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Options)

func WithFlags

func WithFlags(flags ...string) Option

WithFlags sets additional flags to pass to the Go `mod download` command.

func WithModules

func WithModules(modules ...string) Option

WithModules sets modules to pass to the Go `mod download` command.

type Options

type Options struct {
	Flags   []string
	Modules []string
	// contains filtered or unexported fields
}

func NewOptions

func NewOptions(opts ...Option) *Options

type Task

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

func New

func New(ac app.Config, opts ...Option) *Task

func (*Task) BuildParams

func (t *Task) BuildParams() []string

func (*Task) Env

func (t *Task) Env() map[string]string

func (*Task) Kind

func (t *Task) Kind() task.Kind

func (*Task) Name

func (t *Task) Name() string

func (*Task) Options

func (t *Task) Options() task.Options

Jump to

Keyboard shortcuts

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