Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AddMysql = &cli.Command{ Name: "mysql", Usage: "mysql", Action: addMysql, Subcommands: []*cli.Command{ { Name: "create_yaml", Flags: []cli.Flag{ &cli.StringFlag{ Name: "dir", Aliases: []string{"d"}, Usage: "dir", DefaultText: ".", }}, Usage: "mysql create_yaml -d xxx", Action: createMysqlYaml, }, { Name: "add", Flags: []cli.Flag{ &cli.StringFlag{ Name: "dir", Aliases: []string{"d"}, Usage: "dir", DefaultText: ".", }}, Usage: "mysql add -d .", Action: addMysql, }, }, }
AddMysql 添加已有mysql
View Source
var CreatService = &cli.Command{ Name: "service", Subcommands: []*cli.Command{ { Name: "create", Flags: []cli.Flag{ &cli.StringFlag{ Name: "config, c", Usage: "Load configuration from yaml file", DefaultText: "", }}, Usage: "create update service [config]", Action: creatService, }, }, }
CreatService 创建服务
View Source
var CreatYaml = &cli.Command{ Name: "yaml", Subcommands: []*cli.Command{ { Name: "create", Flags: []cli.Flag{ &cli.StringFlag{ Name: "dir", Usage: "dir path", DefaultText: ".", }}, Usage: "create conf [dir]", Action: creatYaml, }, }, }
CreatYaml 创建配置文件
View Source
var Ui = &cli.Command{ Name: "ui", Flags: []cli.Flag{ &cli.StringFlag{ Name: "dir", Usage: "dir path", DefaultText: ".", }}, Usage: "run ui [dir]", Action: ui, }
Ui 运行UI程序
Functions ¶
func CreateYaml ¶ added in v2.0.5
CreateYaml 创建Yaml文件
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.