gen

package
v2.0.2-0...-6dc8811 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CmdChooseFw = &cobra.Command{
	Use:     "fw",
	Short:   "gen a new controller & service & repository & domain",
	Example: "brix gen all user",
	Run:     runCreate,
}
View Source
var CmdCreate = &cobra.Command{
	Use:     "gen [type] [controller-name]",
	Short:   "gen a new controller/service/repository/model",
	Example: "brix gen controller user",
	Args:    cobra.ExactArgs(2),
	Run:     runCreate,
}
View Source
var CmdCreateAll = &cobra.Command{
	Use:     "all",
	Short:   "gen a new controller & service & repository & domain",
	Example: "brix gen all user",
	Args:    cobra.ExactArgs(1),
	Run:     runCreate,
}
View Source
var CmdCreateController = &cobra.Command{
	Use:     "controller",
	Short:   "gen a new controller",
	Example: "brix gen controller user",
	Args:    cobra.ExactArgs(1),
	Run:     runCreate,
}
View Source
var CmdCreateDomain = &cobra.Command{
	Use:     "model",
	Short:   "gen a new domain",
	Example: "brix gen model user",
	Args:    cobra.ExactArgs(1),
	Run:     runCreate,
}
View Source
var CmdCreateRepository = &cobra.Command{
	Use:     "repository",
	Short:   "gen a new repository",
	Example: "brix gen repository user",
	Args:    cobra.ExactArgs(1),
	Run:     runCreate,
}
View Source
var CmdCreateService = &cobra.Command{
	Use:     "service",
	Short:   "gen a new service",
	Example: "brix gen service user",
	Args:    cobra.ExactArgs(1),
	Run:     runCreate,
}

Functions

This section is empty.

Types

type Create

type Create struct {
	ProjectName        string
	CreateType         string
	FilePath           string
	FileName           string
	FileNameTitleLower string
	FileNameFirstChar  string
	IsFull             bool
}

func NewCreate

func NewCreate() *Create

Jump to

Keyboard shortcuts

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