rbeflag

package
v0.0.0-...-223af15 Latest Latest
Warning

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

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

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

func LogAllFlags(verbosity log.Level)

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.

Jump to

Keyboard shortcuts

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