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