mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-11-30 10:48:15 +08:00
Merge pull request #231 from ysicing/V5.1
[fmt] Update the description of grctl
This commit is contained in:
commit
33a39abfb0
@ -40,7 +40,7 @@ func NewCmdDomain() cli.Command {
|
||||
Usage: "domain",
|
||||
},
|
||||
},
|
||||
Usage: "",
|
||||
Usage: "Default *.grapps.cn domain resolution",
|
||||
Action: func(c *cli.Context) error {
|
||||
ip := c.String("ip")
|
||||
if len(ip) == 0 {
|
||||
|
@ -67,8 +67,8 @@ func NewCmdInit() cli.Command {
|
||||
},
|
||||
cli.StringFlag{
|
||||
Name: "rainbond-version",
|
||||
Usage: "Rainbond Install Version. default 5.0",
|
||||
Value: "5.0",
|
||||
Usage: "Rainbond Install Version. default 5.1",
|
||||
Value: "5.1",
|
||||
},
|
||||
cli.StringFlag{
|
||||
Name: "rainbond-repo",
|
||||
|
@ -38,7 +38,7 @@ import (
|
||||
func NewCmdReset() cli.Command {
|
||||
c := cli.Command{
|
||||
Name: "reset",
|
||||
Usage: "重置当前节点grctl reset",
|
||||
Usage: "reset the current node",
|
||||
Action: func(c *cli.Context) error {
|
||||
resetCurrentNode(c)
|
||||
return nil
|
||||
@ -50,7 +50,7 @@ func NewCmdReset() cli.Command {
|
||||
func resetCurrentNode(c *cli.Context) {
|
||||
|
||||
// stop rainbond services
|
||||
fmt.Println("Start stop rainbond services")
|
||||
//fmt.Println("Start stop rainbond services")
|
||||
cmd := exec.Command("grclis", "reset")
|
||||
|
||||
cmd.Stdout = os.Stdout
|
||||
|
Loading…
Reference in New Issue
Block a user