download

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name      = "download"
	OptMedia  = common.OptMedia
	OptArt    = common.OptArt
	OptConfig = common.OptConfig
)

Variables

This section is empty.

Functions

func Command

func Command(p ppi.Plugin, cmd *cobra.Command, opts *Options) error

func New

func New(p ppi.Plugin) *cobra.Command

Types

type Options

type Options struct {
	Name string
	Path string

	MediaType    string
	ArtifactType string
	Config       string
}

func (*Options) AddFlags

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

func (*Options) Complete

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

type Result

type Result struct {
	Path  string `json:"path"`
	Error string `json:"error"`
}

Jump to

Keyboard shortcuts

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