cli

package
v0.0.0-...-34c6a2e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2023 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Commands = make(map[string]*ziggsCommand)
View Source
var ErrNotEnoughArguments = errors.New("not enough arguments")
View Source
var (
	SuggestionMutex = &sync.RWMutex{}
)

Functions

func Executor

func Executor(cmd string)

Executor executes commands

func ProcessBridges

func ProcessBridges()

func ProcessGroups

func ProcessGroups(grps map[string]*ziggy.HueGroup)

func ProcessLights

func ProcessLights(lghts map[string]*ziggy.HueLight)

func ProcessScenes

func ProcessScenes(scns map[string]*ziggy.HueScene)

func StartCLI

func StartCLI()

func StartCLI(r io.Reader, w io.Writer) {

Types

type Selection

type Selection struct {
	Bridge string
	Action string
	Target struct {
		Type string
		Name string
	}
}

func (*Selection) String

func (s *Selection) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL