Documentation ¶
Index ¶
Constants ¶
View Source
const PROJECT_SETTING_FILE_PATH = ".phoenix.yaml"
Variables ¶
View Source
var Cmd = &cobra.Command{ Use: "init", Short: "初始化", Long: `初始化一个 phoenix 项目`, 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"` Pcenter *Pcenter `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 ¶
func (*Project) LoadMongoDBConfig ¶
func (*Project) LoadMySQLConfig ¶
func (*Project) LoadPcenterConfig ¶
Click to show internal directories.
Click to hide internal directories.