flags

package
v0.0.0-...-e07cd09 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2021 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagDefaultDir     = "/var/local/pullrun"
	FlagDefaultDirPerm = 0750
)
View Source
const (
	FlagConfig       = "config"
	FlagDeleteConfig = "delete-config"
	FlagDir          = "dir"
	FlagDirPerm      = "dir-perm"
)

Variables

View Source
var Config = flag.String(FlagConfig, "", "configuration file or json configuration between single quotes")
View Source
var ConfigDelete = flag.Bool(FlagDeleteConfig, false, "delete the configuration once loaded")
View Source
var Dir = flag.String(FlagDir, FlagDefaultDir, "download dir, created if missing")
View Source
var DirPerm = flag.Uint(FlagDirPerm, FlagDefaultDirPerm, "download dir permission")

Functions

func Lookup

func Lookup(name string) *flag.Flag

func Parse

func Parse()

func Usage

func Usage()

Types

This section is empty.

Jump to

Keyboard shortcuts

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