clipflag

package
v0.0.0-...-2009ccb Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package clipflag contains functionality to work with pflag.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Flags

type Flags interface {
	BindRootCommandFlags(flagSet *pflag.FlagSet)
	NewRunFunc(func(context.Context, clienv.Env, *zap.Logger) error) func(clienv.Env) error
}

Flags are base flags.

func NewFlags

func NewFlags() Flags

NewFlags returns a new Flags.

func NewTimeoutFlags

func NewTimeoutFlags(defaultTimeout time.Duration) Flags

NewTimeoutFlags returns a new Flags with a timeout flag.

Jump to

Keyboard shortcuts

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