cli

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const EnvPrefix = "OUTBLOCKS"

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	Ctx context.Context
	Log *logger.Log
}

func (*Context) Debug

func (c *Context) Debug() bool

func (*Context) SetContext

func (c *Context) SetContext(ctx context.Context)

func (*Context) WithContext

func (c *Context) WithContext(ctx context.Context) *Context

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