flag

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Flag

type Flag interface {
	Label() string
	RegisterCommand(*cobra.Command)
	Value() interface{}
	MarkFlagRequired(*cobra.Command)
}

Flag defines a cobra command flag

func NewStringVarP

func NewStringVarP(
	label string,
	shortLabel string,
	defaultValue string,
	description string,
) Flag

NewStringVarP creates a new stringVarP flag

func NewUint64VarP

func NewUint64VarP(
	label string,
	shortLabel string,
	defaultValue uint64,
	description string,
) Flag

NewUint64VarP creates a new uint64VarP flag

Jump to

Keyboard shortcuts

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