Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildCommand ¶
BuildCommand builds a parent command for all creation-related subcommands
Types ¶
type Controller ¶
type Controller struct { command.ProjectPathCommand ControllerName string }
Controller command for controller generation
func (*Controller) BuildCobraCommand ¶
func (c *Controller) BuildCobraCommand() *cobra.Command
BuildCobraCommand builds the cobra command for this action
func (*Controller) BuildSurvey ¶
func (c *Controller) BuildSurvey() ([]*survey.Question, error)
BuildSurvey builds a survey for this action
func (*Controller) Validate ¶
func (c *Controller) Validate() error
Validate checks if required flags are definded
type Middleware ¶
type Middleware struct { command.ProjectPathCommand MiddlewareName string }
Middleware command for model generation
func (*Middleware) BuildCobraCommand ¶
func (c *Middleware) BuildCobraCommand() *cobra.Command
BuildCobraCommand builds the cobra command for this action
func (*Middleware) BuildSurvey ¶
func (c *Middleware) BuildSurvey() ([]*survey.Question, error)
BuildSurvey builds a survey for this action
func (*Middleware) Validate ¶
func (c *Middleware) Validate() error
Validate is a function which check if required flags are definded
type Model ¶
type Model struct { command.ProjectPathCommand ModelName string }
Model command for model generation
func (*Model) BuildCobraCommand ¶
BuildCobraCommand builds the cobra command for this action
func (*Model) BuildSurvey ¶
BuildSurvey builds a survey for this action
type Project ¶
Project command for project generation
func (*Project) BuildCobraCommand ¶
BuildCobraCommand builds the cobra command for this action
func (*Project) BuildSurvey ¶
BuildSurvey builds a survey for this action