cmdutil

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUserSetOptionalVarFromArrayString

func GetUserSetOptionalVarFromArrayString(cmd *cobra.Command, flagName, envKey string) []string

GetUserSetOptionalVarFromArrayString returns values either command line flag or environment variable.

func GetUserSetOptionalVarFromString

func GetUserSetOptionalVarFromString(cmd *cobra.Command, flagName, envKey string) string

GetUserSetOptionalVarFromString returns values either command line flag or environment variable.

func GetUserSetVarFromArrayString

func GetUserSetVarFromArrayString(cmd *cobra.Command, flagName, envKey string, isOptional bool) ([]string, error)

GetUserSetVarFromArrayString returns values either command line flag or environment variable.

func GetUserSetVarFromString

func GetUserSetVarFromString(cmd *cobra.Command, flagName, envKey string, isOptional bool) (string, error)

GetUserSetVarFromString returns values either command line flag or environment variable.

Types

This section is empty.

Jump to

Keyboard shortcuts

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