Documentation
¶
Index ¶
- func NewCmdBiz() *cobra.Command
- func NewCmdCMD() *cobra.Command
- func NewCmdController() *cobra.Command
- func NewCmdCrud() *cobra.Command
- func NewCmdMake() *cobra.Command
- func NewCmdMiddleware() *cobra.Command
- func NewCmdModel() *cobra.Command
- func NewCmdRequest() *cobra.Command
- func NewCmdStore() *cobra.Command
- type BizOptions
- type CmdOptions
- type ControllerOptions
- type CrudOptions
- type MiddlewareOptions
- type ModelOptions
- type Options
- type RequestOptions
- type StoreOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmdController ¶
NewCmdController returns new initialized instance of 'controller' sub command.
func NewCmdCrud ¶
NewCmdCrud returns new initialized instance of 'crud' sub command.
func NewCmdMake ¶
NewCmdMake returns new initialized instance of 'new' sub command.
func NewCmdMiddleware ¶
NewCmdMiddleware returns new initialized instance of 'middleware' sub command.
func NewCmdModel ¶
NewCmdModel returns new initialized instance of 'model' sub command.
func NewCmdRequest ¶
NewCmdRequest returns new initialized instance of 'request' sub command.
func NewCmdStore ¶
NewCmdStore returns new initialized instance of 'store' sub command.
Types ¶
type BizOptions ¶
type BizOptions struct { *Options RootPackage string StorePath string RequestPath string ModelPath string ModelName string }
BizOptions is an option struct to support 'biz' sub command.
func NewBizOptions ¶
func NewBizOptions() *BizOptions
NewBizOptions returns an initialized BizOptions instance.
func (*BizOptions) Complete ¶
func (o *BizOptions) Complete(cmd *cobra.Command, args []string) error
Complete completes all the required options.
func (*BizOptions) Run ¶
func (o *BizOptions) Run(args []string) error
Run executes a new sub command using the specified options.
type CmdOptions ¶
CmdOptions is an option struct to support 'cmd' sub command.
func NewCmdOptions ¶
func NewCmdOptions() *CmdOptions
NewCmdOptions returns an initialized CmdOptions instance.
func (*CmdOptions) Complete ¶
func (o *CmdOptions) Complete(cmd *cobra.Command, args []string) error
Complete completes all the required options.
func (*CmdOptions) Run ¶
func (o *CmdOptions) Run(args []string) error
Run executes a new sub command using the specified options.
type ControllerOptions ¶
type ControllerOptions struct { *Options RootPackage string BizPath string StorePath string RequestPath string ModelPath string ModelName string }
ControllerOptions is an option struct to support 'controller' sub command.
func NewControllerOptions ¶
func NewControllerOptions() *ControllerOptions
NewControllerOptions returns an initialized ControllerOptions instance.
func (*ControllerOptions) Complete ¶
func (o *ControllerOptions) Complete(cmd *cobra.Command, args []string) error
Complete completes all the required options.
func (*ControllerOptions) Run ¶
func (o *ControllerOptions) Run(args []string) error
Run executes a new sub command using the specified options.
type CrudOptions ¶
type CrudOptions struct { *Options RootPackage string BizPath string StorePath string RequestPath string ModelPath string ModelName string }
CrudOptions is an option struct to support 'crud' sub command.
func NewCrudOptions ¶
func NewCrudOptions() *CrudOptions
NewCrudOptions returns an initialized CrudOptions instance.
func (*CrudOptions) Complete ¶
func (o *CrudOptions) Complete(cmd *cobra.Command, args []string) error
Complete completes all the required options.
func (*CrudOptions) Run ¶
func (o *CrudOptions) Run(args []string) error
Run executes a new sub command using the specified options.
type MiddlewareOptions ¶
type MiddlewareOptions struct {
*Options
}
MiddlewareOptions is an option struct to support 'middleware' sub command.
func NewMiddlewareOptions ¶
func NewMiddlewareOptions() *MiddlewareOptions
NewMiddlewareOptions returns an initialized MiddlewareOptions instance.
func (*MiddlewareOptions) Complete ¶
func (o *MiddlewareOptions) Complete(cmd *cobra.Command, args []string) error
Complete completes all the required options.
func (*MiddlewareOptions) Run ¶
func (o *MiddlewareOptions) Run(args []string) error
Run executes a new sub command using the specified options.
type ModelOptions ¶
type ModelOptions struct {
*Options
}
ModelOptions is an option struct to support 'model' sub command.
func NewModelOptions ¶
func NewModelOptions() *ModelOptions
NewModelOptions returns an initialized ModelOptions instance.
func (*ModelOptions) Complete ¶
func (o *ModelOptions) Complete(cmd *cobra.Command, args []string) error
Complete completes all the required options.
func (*ModelOptions) Run ¶
func (o *ModelOptions) Run(args []string) error
Run executes a new sub command using the specified options.
type Options ¶
type RequestOptions ¶
type RequestOptions struct {
*Options
}
RequestOptions is an option struct to support 'request' sub command.
func NewRequestOptions ¶
func NewRequestOptions() *RequestOptions
NewRequestOptions returns an initialized RequestOptions instance.
func (*RequestOptions) Complete ¶
func (o *RequestOptions) Complete(cmd *cobra.Command, args []string) error
Complete completes all the required options.
func (*RequestOptions) Run ¶
func (o *RequestOptions) Run(args []string) error
Run executes a new sub command using the specified options.
type StoreOptions ¶
StoreOptions is an option struct to support 'store' sub command.
func NewStoreOptions ¶
func NewStoreOptions() *StoreOptions
NewStoreOptions returns an initialized StoreOptions instance.
func (*StoreOptions) Complete ¶
func (o *StoreOptions) Complete(cmd *cobra.Command, args []string) error
Complete completes all the required options.
func (*StoreOptions) Run ¶
func (o *StoreOptions) Run(args []string) error
Run executes a new sub command using the specified options.