flags

package
v0.2.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ParallelKey = "parallel"

	DictionarySizeKey     = "dictionary-size"
	DictionarySizeDefault = 50000

	IDsKey    = "ids"
	TitlesKey = "titles"
)

Flags and default values for keys used in the various CLIs.

Variables

View Source
var ErrInvalidFlag = errors.New("invalid flag")

Functions

func DictionarySize

func DictionarySize(cmd *cobra.Command)

func GetIDs added in v0.2.0

func GetIDs(cmd *cobra.Command) ([]uint, error)

func GetParallel added in v0.2.0

func GetParallel(cmd *cobra.Command) (int, error)

func GetTitles added in v0.2.0

func GetTitles(cmd *cobra.Command) ([]string, error)

func IDs

func IDs(cmd *cobra.Command)

func InvalidFlagError added in v0.2.0

func InvalidFlagError(flag string, message string) error

func Parallel

func Parallel(cmd *cobra.Command)

func ParsingFlagError added in v0.2.0

func ParsingFlagError(flag string, err error) error

func Titles

func Titles(cmd *cobra.Command)

Types

This section is empty.

Jump to

Keyboard shortcuts

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