🔧 Renames commands
All checks were successful
Gitea Build Action / build-go (push) Successful in 51s
Gitea Build Action / build-nuxt (push) Successful in 10m13s

This commit is contained in:
Daniel Svitan 2025-06-07 09:51:30 +02:00
parent cb397b7cd3
commit cf35326bf2

View File

@ -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{