Documentation ¶
Overview ¶
Package rbeflag allows parsing of flags that can be set in environment variables.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogAllFlags ¶
LogAllFlags logs the current values of all flags.
func Parse ¶
func Parse()
Parse parses flags which are set in environment variables using the RBE_ prefix, otherwise FLAG_ prefix. If the flag is set in the command line, the command line value of the flag takes precedence over the environment variable value. If the flag 'cfg' is set to a file (either on the command-line or via an RBE_ prefixed environment variable), that file will be processed and any flag that is defined in that file that is not already set will be set to the value defined in the file. Flags already set via an environment variable or directly on the command line will not be overridden by the contents of the config file.
func ParseFromEnv ¶
func ParseFromEnv()
ParseFromEnv parses flags which are set in environment variables using the RBE_ prefix, and if not set, fallback to the FLAG_ prefix.
Types ¶
This section is empty.