cmd

package
v0.0.0-...-c365c49 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PIPELINE = "pipeline"
	ENV      = "env"
	NOCOLOR  = "no-color"
	CONFIG   = "config"
)

Sample keys in config

Variables

View Source
var DEFAULT = map[string]interface{}{
	ENV:     "dev",
	NOCOLOR: false,
}

DEFAULT values for keys in config

Functions

func CONF

func CONF(key string) interface{}

CONF Returns corresponding value from viper

func ERR

func ERR(msg interface{})

ERR is called before exiting in case of errors

func Execute

func Execute() error

Execute executes the root command.

func REQUIRED

func REQUIRED(f string)

REQUIRED checks if the required config field is present

func RUN

func RUN(f func()) func(*cobra.Command, []string)

RUN wraps the run for each command

Types

This section is empty.

Jump to

Keyboard shortcuts

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