cli

package
v0.0.38 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2021 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PopulateFlagSet added in v0.0.21

func PopulateFlagSet(obj interface{}, flagSet *pflag.FlagSet, vpr *viper.Viper, opts ...FlagOption) *pflag.FlagSet

func StartAgent added in v0.0.38

func StartAgent(config *config.Agent) error

func StartServer added in v0.0.38

func StartServer(_ *config.Server) error

Types

type FlagOption added in v0.0.34

type FlagOption func(*options)

func WithReplacement added in v0.0.34

func WithReplacement(k, v string) FlagOption

func WithSkip added in v0.0.34

func WithSkip(n ...string) FlagOption

func WithSkipDeprecated added in v0.0.34

func WithSkipDeprecated(ok bool) FlagOption

WithSkipDeprecated specifies that fields marked as deprecated won't be parsed. By default PopulateFlagSet parses them but not shows in Usage; setting this option to true causes PopulateFlagSet to skip parsing.

Jump to

Keyboard shortcuts

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