arg

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterFlag

func FilterFlag(t interface{}, flag, val string)

FilterFlag compairs the value of the filter flag against the list of slice values.

Types

type Approve

type Approve struct {
	Verbose bool
}

type Clean

type Clean struct {
	Delete   bool
	Humanise bool
	MakeDirs bool
	Target   string
}

type Config

type Config struct {
	InfoSize  bool
	Name      string
	Overwrite bool
}

type Demozoo

type Demozoo struct {
	All       bool // scan for all proofs, not just new submissions
	Overwrite bool // overwrite all existing assets
	Simulate  bool
	New       bool
	Refresh   bool
	Sync      bool
	ID        string // auto-generated id or a uuid
	Extract   []string
	Ping      uint
	Download  uint
}

type Execute

type Execute struct {
	Filename string // Filename of the config file.
	Quiet    bool   // Quiet mode to reduce text amount of stdout text.
	Panic    bool   // Enable panic errors to help debug.
	Simulate bool   // Simulate...
}

Execute global flags.

type Group

type Group struct {
	Counts   bool
	Cronjob  bool
	Forcejob bool
	Init     bool
	Progress bool
	Filter   string
	Format   string
}

type People

type People struct {
	Filter   string
	Format   string
	Progress bool
}

type Proof

type Proof struct {
	ID          string // auto-generated id or a uuid
	All         bool   // scan for all proofs, not just new uploads
	HideMissing bool   // hide proofs that are missing their file download
	Overwrite   bool   // overwrite all existing images
}

type Recent

type Recent struct {
	Compress bool
	Limit    uint
}

type ZipCmmt

type ZipCmmt struct {
	Ascii   bool
	Unicode bool
	OW      bool
}

Jump to

Keyboard shortcuts

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