cmd

package
v0.0.0-...-bb52808 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "chew",
	Short: "A CLI for Go Templates",
	Long: `Chew is a CLI for Go Templates which generates output based on input data.
It parses all templates that it can find in the defined folder and then
generates the output based on the data in the JSON input.`,
	PreRunE: preChew,
	RunE:    chewRun,
}

RootCmd represents the base command when called without any subcommands

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

This section is empty.

Jump to

Keyboard shortcuts

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