go.charczuk.com@v0.0.0-20240327042549-bc490516bd1a/experiments/huectl/pkg/command/huectl.go (about)

     1  /*
     2  
     3  Copyright (c) 2023 - Present. Will Charczuk. All rights reserved.
     4  Use of this source code is governed by a MIT license that can be found in the LICENSE file at the root of the repository.
     5  
     6  */
     7  
     8  package command
     9  
    10  import (
    11  	"github.com/urfave/cli/v2"
    12  )
    13  
    14  // Huectl is the cli app.
    15  var Huectl = &cli.App{
    16  	Name:  "huectl",
    17  	Usage: "Control hue lights and scenes using a local bridge.",
    18  	Flags: DefaultFlags,
    19  	Action: func(c *cli.Context) error {
    20  		cli.ShowAppHelp(c)
    21  		return nil
    22  	},
    23  	Commands: []*cli.Command{
    24  		Auth(),
    25  		Script(),
    26  		Pause(),
    27  
    28  		ListLights(),
    29  		ListGroups(),
    30  		ListScenes(),
    31  		SetGroupOn(),
    32  		SetGroupOff(),
    33  		SetGroupColor(),
    34  		SetGroupScene(),
    35  		SetGroupBrightness(),
    36  		SetLightOn(),
    37  		SetLightOff(),
    38  		SetLightColor(),
    39  		SetLightBrightness(),
    40  	},
    41  }