cmdline

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attrs

type Attrs map[string][]string

func (Attrs) Set

func (v Attrs) Set(s string) error

func (Attrs) String

func (v Attrs) String() string

type Boolean

type Boolean bool

func (*Boolean) Set

func (b *Boolean) Set(s string) error

func (*Boolean) String

func (b *Boolean) String() string

type EndPage

type EndPage struct {
	End int
	// contains filtered or unexported fields
}

func NewEndPage

func NewEndPage(start *StartPage) *EndPage

func (*EndPage) Set

func (p *EndPage) Set(s string) error

func (*EndPage) String

func (p *EndPage) String() string

type FSDirectory

type FSDirectory struct {
	Path string
}

func (*FSDirectory) Set

func (v *FSDirectory) Set(s string) error

func (*FSDirectory) String

func (v *FSDirectory) String() string

type IntRange

type IntRange struct {
	Range [2]int
}

func (*IntRange) Set

func (v *IntRange) Set(s string) error

func (*IntRange) String

func (v *IntRange) String() string

type IntTuple added in v0.1.1

type IntTuple struct {
	Numbers []int
}

func (*IntTuple) Set added in v0.1.1

func (v *IntTuple) Set(s string) error

func (*IntTuple) String added in v0.1.1

func (v *IntTuple) String() string

type Product

type Product struct {
	GlobalFlags  []string
	Crawler      string
	CrawlerFlags []string
	Pager        string
	PagerFlags   []string
	Url          string
}

func Partition added in v0.1.1

func Partition(cmdln []string) (*Product, error)

func (*Product) String added in v0.1.1

func (r *Product) String() string

type SingleURL

type SingleURL struct {
	URL *url.URL
}

func (*SingleURL) Set

func (v *SingleURL) Set(s string) error

func (*SingleURL) String

func (v *SingleURL) String() string

type StartPage

type StartPage int

func (*StartPage) Set

func (i *StartPage) Set(s string) error

func (*StartPage) String

func (i *StartPage) String() string

type StringWhitelist added in v0.1.1

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

func NewStringWhitelist added in v0.1.1

func NewStringWhitelist(delim string, whitelisted ...string) *StringWhitelist

func (*StringWhitelist) Result added in v0.1.1

func (v *StringWhitelist) Result() []string

func (*StringWhitelist) Set added in v0.1.1

func (v *StringWhitelist) Set(s string) error

func (*StringWhitelist) String added in v0.1.1

func (v *StringWhitelist) String() string

type URLCollection

type URLCollection struct {
	URLs []*url.URL
}

URLCollection is used to convert a comma seperated string of raw urls into a slice of pointers to URL types.

func (*URLCollection) Set

func (v *URLCollection) Set(s string) error

func (*URLCollection) String

func (v *URLCollection) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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