cli

package
v0.1.92 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvPrefix = "OUTBLOCKS"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvVar

type EnvVar struct {
	// contains filtered or unexported fields
}

func (*EnvVar) Info

func (v *EnvVar) Info() []string

type Environment

type Environment struct {
	// contains filtered or unexported fields
}

func NewEnvironment

func NewEnvironment(v *viper.Viper) *Environment

func (*Environment) AddVar

func (e *Environment) AddVar(key, description string)

func (*Environment) AddVarWithDefault

func (e *Environment) AddVarWithDefault(key, description, def string)

func (*Environment) BindCLIFlag

func (e *Environment) BindCLIFlag(key string, f *pflag.Flag)

func (*Environment) Info

func (e *Environment) Info() [][]string

Directories

Path Synopsis
Inspired by similar approach in: https://github.com/helm/helm (Apache 2.0 License).
Inspired by similar approach in: https://github.com/helm/helm (Apache 2.0 License).

Jump to

Keyboard shortcuts

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