flags

package
v0.0.0-...-1cec081 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintFlags

func PrintFlags(flags *pflag.FlagSet)

PrintFlags logs the flags in the flagset

func SetFlagsFromEnv

func SetFlagsFromEnv(prefix string, flags *pflag.FlagSet)

SetFlagsFromEnv set value of flag if not changed but has env key

Types

type Compression

type Compression int
const (
	Disable Compression = iota
	Uncompressed
	Bzip2
	Gzip
	Xz
	Zstd
)

func (*Compression) Compression

func (c *Compression) Compression() archive.Compression

func (*Compression) Set

func (c *Compression) Set(s string) error

func (*Compression) String

func (c *Compression) String() string

func (*Compression) Type

func (c *Compression) Type() string

Jump to

Keyboard shortcuts

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