command

package
v0.0.0-...-b980ed7 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GenerateCmd = cli.Command{
	Name:      "generate",
	ShortName: "g",
	Usage:     "Perform code generation with given Generation Plan Specification",
	Before: func(ctx *cli.Context) (err error) {
		specPath := ctx.String("spec")
		if specPath == "" {
			return
		}

		if err := spec.ValidateSpec(specPath); err != nil {
			log.Printf("Validate specification %s error %+v", specPath, err)
		}
		return
	},
	Action: doGenerate,
	Flags: []cli.Flag{
		cli.StringFlag{Name: "spec", Usage: "Location of Generation Plan Specification"},
	},
	Subcommands: cli.Commands{generate.ORMCmd},
}

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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