🔧 Renames commands
This commit is contained in:
parent
cb397b7cd3
commit
cf35326bf2
@ -120,7 +120,7 @@ func main() {
|
|||||||
Action: test,
|
Action: test,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "open",
|
Name: "opened",
|
||||||
Usage: "get door state (opened or closed)",
|
Usage: "get door state (opened or closed)",
|
||||||
Flags: []cli.Flag{
|
Flags: []cli.Flag{
|
||||||
&cli.BoolFlag{
|
&cli.BoolFlag{
|
||||||
@ -131,16 +131,16 @@ func main() {
|
|||||||
Action: getOpened,
|
Action: getOpened,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "lock",
|
Name: "locked",
|
||||||
Usage: "change lock status",
|
Usage: "change lock status",
|
||||||
Commands: []*cli.Command{
|
Commands: []*cli.Command{
|
||||||
{
|
{
|
||||||
Name: "on",
|
Name: "yes",
|
||||||
Usage: "lock the door",
|
Usage: "lock the door",
|
||||||
Action: createManageLock(true),
|
Action: createManageLock(true),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "off",
|
Name: "no",
|
||||||
Usage: "unlock the door",
|
Usage: "unlock the door",
|
||||||
Action: createManageLock(false),
|
Action: createManageLock(false),
|
||||||
},
|
},
|
||||||
@ -148,16 +148,16 @@ func main() {
|
|||||||
Action: getLocked,
|
Action: getLocked,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "alert",
|
Name: "alerts",
|
||||||
Usage: "change alert status",
|
Usage: "change alert status",
|
||||||
Commands: []*cli.Command{
|
Commands: []*cli.Command{
|
||||||
{
|
{
|
||||||
Name: "on",
|
Name: "yes",
|
||||||
Usage: "resume alerts",
|
Usage: "resume alerts",
|
||||||
Action: createManageAlert(true),
|
Action: createManageAlert(true),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "off",
|
Name: "no",
|
||||||
Usage: "pause alerts",
|
Usage: "pause alerts",
|
||||||
Flags: []cli.Flag{
|
Flags: []cli.Flag{
|
||||||
&cli.StringFlag{
|
&cli.StringFlag{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user