create

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildCommand

func BuildCommand() *cobra.Command

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) Execute

func (c *Controller) Execute() error

Execute the command's behavior

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) Execute

func (c *Middleware) Execute() error

Execute the command's behavior

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

func (c *Model) BuildCobraCommand() *cobra.Command

BuildCobraCommand builds the cobra command for this action

func (*Model) BuildSurvey

func (c *Model) BuildSurvey() ([]*survey.Question, error)

BuildSurvey builds a survey for this action

func (*Model) Execute

func (c *Model) Execute() error

Execute the command's behavior

func (*Model) Validate

func (c *Model) Validate() error

Validate checks if required flags are definded

type Project

type Project struct {
	GoyaveVersion string
	ModuleName    string
}

Project command for project generation

func (*Project) BuildCobraCommand

func (c *Project) BuildCobraCommand() *cobra.Command

BuildCobraCommand builds the cobra command for this action

func (*Project) BuildSurvey

func (c *Project) BuildSurvey() ([]*survey.Question, error)

BuildSurvey builds a survey for this action

func (*Project) Execute

func (c *Project) Execute() error

Execute the command's behavior

func (*Project) Validate

func (c *Project) Validate() error

Validate check if required flags are definded

Jump to

Keyboard shortcuts

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