globalflags

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ConfigFlag represents the name of the config flag
	ConfigFlag = "config"
)

Variables

This section is empty.

Functions

func Config

func Config(cmd *cobra.Command) (*string, error)

Config returns value of a --config flag

func InitGlobalCmdFlags

func InitGlobalCmdFlags(cmd *cobra.Command)

InitGlobalCmdFlags initialises global command flags

Types

This section is empty.

Jump to

Keyboard shortcuts

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