download

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Names = names.Artifacts
	Verb  = verbs.Download
)

Functions

func NewCommand

func NewCommand(ctx clictx.Context, names ...string) *cobra.Command

NewCommand creates a new download command.

Types

type Command

type Command struct {
	utils.BaseCommand

	Refs []string
}

func (*Command) Complete

func (o *Command) Complete(args []string) error

func (*Command) ForName

func (o *Command) ForName(name string) *cobra.Command

func (*Command) Run

func (o *Command) Run() error

type Option added in v0.4.1

type Option struct {
	Layers  []int
	DirTree bool
}

func From added in v0.4.1

func New added in v0.4.1

func New() *Option

func (*Option) AddFlags added in v0.4.1

func (o *Option) AddFlags(fs *pflag.FlagSet)

func (*Option) Usage added in v0.4.1

func (o *Option) Usage() string

Jump to

Keyboard shortcuts

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