Documentation ¶
Index ¶
Constants ¶
View Source
const PROJECT_SETTING_FILE_PATH = ".mcube.yaml"
Variables ¶
View Source
var Cmd = &cobra.Command{ Use: "init", Short: "初始化", Long: `初始化一个mcube项目`, Run: func(cmd *cobra.Command, args []string) { p, err := LoadConfigFromCLI() if err != nil { if err == terminal.InterruptErr { fmt.Println("项目初始化取消") return } cobra.CheckErr(err) } err = p.Init() cobra.CheckErr(err) }, }
InitCmd 初始化系统
Functions ¶
This section is empty.
Types ¶
type Project ¶
type Project struct { PKG string `yaml:"pkg"` Name string `yaml:"name"` Description string `yaml:"description"` EnableMcenter bool `yaml:"enable_mcenter"` Mcenter *Mcenter `yaml:"-"` EnableMySQL bool `yaml:"enable_mysql"` MySQL *MySQL `yaml:"-"` EnableMongoDB bool `yaml:"enable_mongodb"` MongoDB *MongoDB `yaml:"-"` GenExample bool `yaml:"gen_example"` HttpFramework string `yaml:"http_framework"` EnableCache bool `yaml:"enable_cache"` // contains filtered or unexported fields }
Project todo
func LoadProjectFromYAML ¶ added in v1.9.16
func (*Project) LoadMcenterConfig ¶ added in v1.9.16
func (*Project) LoadMongoDBConfig ¶ added in v1.9.16
func (*Project) LoadMySQLConfig ¶ added in v1.9.16
Click to show internal directories.
Click to hide internal directories.