cmd

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter

type Filter struct {
	Filter      []args.Filter `short:"f" long:"filter" description:"Filter metalink files" default-mask:"TYPE[:VALUE]"`
	SortReverse bool          `long:"sort-reverse" description:"Reverse sort order"`
	Limit       int           `short:"n" long:"limit" description:"Limit the number of metalink files"`
	Args        FilterArgs    `positional-args:"true" required:"true"`
	Format      string        `long:"format" description:"Format to dump the repository (json, version, xml)" default:"xml"`

	SourceFactory source.Factory
	FilterManager filter.Manager
}

func (*Filter) Execute

func (c *Filter) Execute(_ []string) error

type FilterArgs

type FilterArgs struct {
	RepositoryURI string `positional-arg-name:"URI" description:"Repository URI hosting the files"`
}

type Show

type Show struct {
	Filter []args.Filter `short:"f" long:"filter" description:"Filter metalink files" default-mask:"TYPE[:VALUE]"`
	Args   ShowArgs      `positional-args:"true" required:"true"`
	Format string        `long:"format" description:"Format to dump the metalink (json, version, xml)" default:"xml"`

	SourceFactory source.Factory
	FilterManager filter.Manager
}

func (*Show) Execute

func (c *Show) Execute(_ []string) error

type ShowArgs

type ShowArgs struct {
	RepositoryURI string `positional-arg-name:"URI" description:"Repository URI hosting the files"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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