generate

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Command = &cobra.Command{
	Use:   "generate",
	Short: "Generate templated email html",
	Long:  "Use this command to generate templated for specific or multiple layouts.",
	Args:  cobra.NoArgs,
	Run: func(cmd *cobra.Command, args []string) {
		g := generate.NewGenerator(
			defaultStringValueOrNil(layoutDir),
			defaultStringValueOrNil(layout),
			defaultStringValueOrNil(destPath),
			defaultStringValueOrNil(destDir),
			defaultStringValueOrNil(argsPath),
			defaultStringValueOrNil(argsJSON),
		)
		err := g.Generate()
		if err != nil {
			panic(err)
		}
	},
}

Command defines the generate command

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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