Documentation
¶
Index ¶
- func NewCmdBiz() *cobra.Command
- func NewCmdCMD() *cobra.Command
- func NewCmdController() *cobra.Command
- func NewCmdCrud() *cobra.Command
- func NewCmdJob() *cobra.Command
- func NewCmdMake() *cobra.Command
- func NewCmdMiddleware() *cobra.Command
- func NewCmdMigration() *cobra.Command
- func NewCmdModel() *cobra.Command
- func NewCmdRequest() *cobra.Command
- func NewCmdSeeder() *cobra.Command
- func NewCmdStore() *cobra.Command
- func NewOptions() *generator.Options
- type BizOptions
- type CmdOptions
- type ControllerOptions
- type CrudOptions
- type JobOptions
- type MiddlewareOptions
- type MigrationOptions
- type ModelOptions
- type RequestOptions
- type SeedOptions
- 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 NewCmdMigration ¶ added in v1.2.0
NewCmdMigration returns new initialized instance of 'migration' 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 NewCmdSeeder ¶ added in v1.2.4
NewCmdSeeder returns new initialized instance of 'seeder' sub command.
func NewCmdStore ¶
NewCmdStore returns new initialized instance of 'store' sub command.
func NewOptions ¶
NewOptions returns an initialized CmdOptions instance.
Types ¶
type BizOptions ¶
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 ¶
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 ¶
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 JobOptions ¶ added in v0.1.8
JobOptions is an option struct to support 'job' sub command.
func NewJobOptions ¶ added in v0.1.8
func NewJobOptions() *JobOptions
NewJobOptions returns an initialized JobOptions instance.
func (*JobOptions) Complete ¶ added in v0.1.8
func (o *JobOptions) Complete(cmd *cobra.Command, args []string) error
Complete completes all the required options.
func (*JobOptions) Run ¶ added in v0.1.8
func (o *JobOptions) Run(args []string) error
Run executes a new sub command using the specified options.
type MiddlewareOptions ¶
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 MigrationOptions ¶ added in v1.2.0
MigrationOptions is an option struct to support 'migration' sub command.
func NewMigrationOptions ¶ added in v1.2.0
func NewMigrationOptions() *MigrationOptions
NewMigrationOptions returns an initialized MigrationOptions instance.
func (*MigrationOptions) Complete ¶ added in v1.2.0
func (o *MigrationOptions) Complete(cmd *cobra.Command, args []string) error
Complete completes all the required options.
func (*MigrationOptions) Run ¶ added in v1.2.0
func (o *MigrationOptions) Run(args []string) error
Run executes a new sub command using the specified options.
type ModelOptions ¶
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 RequestOptions ¶
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 SeedOptions ¶ added in v1.2.4
SeedOptions is an option struct to support 'seeder' sub command.
func NewSeederOptions ¶ added in v1.2.4
func NewSeederOptions() *SeedOptions
NewSeederOptions returns an initialized SeedOptions instance.
func (*SeedOptions) Complete ¶ added in v1.2.4
func (o *SeedOptions) Complete(cmd *cobra.Command, args []string) error
Complete completes all the required options.
func (*SeedOptions) Run ¶ added in v1.2.4
func (o *SeedOptions) 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.