cmd

package
v2.1.41 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

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

func CreateYaml(yamlPath string, config *conf.GoCore) (*conf.GoCore, error)

CreateYaml 创建Yaml文件

func InitYaml added in v2.0.4

func InitYaml(yamlPath string, config *conf.GoCore) (*conf.GoCore, error)

InitYaml 初始化Yaml配置文件

Types

This section is empty.

Jump to

Keyboard shortcuts

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