🔧 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, 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{