cli

package
v0.1.139 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2022 License: MIT Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

func (*Environment) SetPFlags added in v0.1.103

func (e *Environment) SetPFlags()

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