cmd

package
v0.0.0-...-05217b6 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2018 License: LGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "0.1.0"

Variables

View Source
var (
	Verbose      bool
	VerboseSplit bool
)

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type OutputSplitter

type OutputSplitter struct{}

Used to route error level logs to stderr and the rest to stdout. Credits: https://github.com/sirupsen/logrus/issues/403#issuecomment-346437512 This disables the feature of color output in case it's ran from a TTY.

func (*OutputSplitter) Write

func (splitter *OutputSplitter) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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