clienv

package
v1.4.6 Latest Latest
Warning

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

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

Documentation

Overview

Package clienv supports adding env variables automatically into github.com/urfave/cli flags.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddEnvVar

func AddEnvVar(flag cli.Flag, prefix string)

AddEnvVar sets f.EnvVar given that flag is has type.

func AddEnvVars

func AddEnvVars(app *cli.App, prefix string)

AddEnvVars creates EnvVars slice for each flag in app.

func NameToEnv

func NameToEnv(prefix, name string) string

NameToEnv converts names like asd.foo-bar to ASD_FOO_BAR.

func NamesToEnv

func NamesToEnv(prefix string, names []string) []string

NameToEnv creates new slice with matching env style names.

Types

This section is empty.

Jump to

Keyboard shortcuts

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