Fetch the repository succeeded.
package eoscli
import (
"fmt"
"gitee.com/meng_mengs_boys/eosc/env"
"github.com/urfave/cli/v2"
)
type App struct {
app *cli.App
}
func NewApp() *App {
return &App{app: &cli.App{
Name: env.AppName(),
Usage: fmt.Sprintf("%s controller", env.AppName()),
Commands: make([]*cli.Command, 0, 6),
Flags: []cli.Flag{
&cli.StringFlag{
Name: "env",
Aliases: nil,
Usage: "",
EnvVars: nil,
FilePath: "",
Required: false,
Hidden: false,
TakesFile: false,
Value: "",
DefaultText: "",
Destination: nil,
HasBeenSet: false,
},
},
}}
}
func (a *App) AppendCommand(cmd ...*cli.Command) {
a.app.Commands = append(a.app.Commands, cmd...)
}
func (a *App) Run(args []string) error {
return a.app.Run(args)
}
func (a *App) Default() {
a.AppendCommand(
Start(),
Join(),
Stop(),
Info(),
Leave(),
Restart(),
//Env(),
Master(),
Remove(),
//Plugin(),
)
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。