cmd

package
v0.0.0-...-d71130a Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2018 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const MAGICENV = "LAT_MAGIC"

Variables

View Source
var ExitCode int

The main function exits with this code during a normal exit. Set this to the desired value before the Run func returns.

View Source
var RootCmd = &cobra.Command{
	Use:   "lateral <command>",
	Short: "lateral is an easy-to-use process parallelizer",
	Long: `Lateral is designed to make it a no-brainer to parallelize processing that would
otherwise be done sequentially. It's designed to be a more powerful 'xargs -P'
while also being low-friction and having as few surprises as possible.
`,
}

This represents the base command when called without any subcommands

View Source
var Viper = viper.New()

The viper instance that will be passed to the implementation of lateral. Not using the global viper makes testing easier.

Functions

func Execute

func Execute()

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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