cmd

package
v0.0.0-...-471202d Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2018 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EnumCmd = cli.Command{
	Name:  "enum",
	Usage: "generate var and methods for the iota-enums",
	Flags: append(baseFlags,

		cli.StringFlag{
			Name:  transformFlag,
			Usage: "way to convert constants to a string;",
			Value: "none",
		},

		cli.BoolFlag{
			Name:  tprefixFlag,
			Usage: "keep typename prefix in string values or not;",
		},
	),
	Action: genEnums,
}
View Source
var ModelCmd = cli.Command{
	Name:  "model",
	Usage: "generate code for structure by template",
	Flags: []cli.Flag{
		cli.StringFlag{
			Name:  tPath,
			Usage: "path to the templates; required;",
		},
		cli.StringFlag{
			Name:  typesFlag,
			Usage: "list of type names; required;",
		},
		cli.StringFlag{
			Name:  prefixFlag,
			Usage: "prefix to be added to the output file;",
			Value: "",
		},

		cli.StringFlag{
			Name:  suffixFlag,
			Usage: "suffix to be added to the output file;",
			Value: "",
		},
	},
	Action: genModelAction,
}

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