You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.2 KiB
39 lines
1.2 KiB
package main
|
|
|
|
const helpString = `
|
|
lucy – lucifer CLI
|
|
|
|
EXAMPLES
|
|
lucy set tag:Hexagon color=hs:35,1 intensity=0.3
|
|
lucy run SetProfile name=evening
|
|
|
|
DEVICE COMMANDS
|
|
list <search>
|
|
set <search> <power=B> <color=C> <intensity=F> <temperature=N>
|
|
tag <search> <[+/-]tag-name>
|
|
update <search> <name=S> <icon=S> <prop.*=S/NULL>
|
|
|
|
EVENT HANDLER COMMANDS
|
|
handler list
|
|
handler add <event> <search> \
|
|
<one-shot=B> \
|
|
<priority=N> \
|
|
<from=TOD to=TOD> \
|
|
<conditions.[any.*|all.*|*][<|<=|=|=>|>]*> \
|
|
<set-power=B> <set-color=C> <set-intensity=F> <set-temperature=N> \
|
|
<add-intensity=F> \
|
|
<fire.name=S> <fire.payload.*=S>
|
|
handler edit <id> \
|
|
(...all arguments from 'add', appending conditions and fire payload matchers...) \
|
|
<event=S> <search=S>
|
|
<-from> <-to> \
|
|
<-set-power> <-set-color> <-set-intensity> <-set-temperature> \
|
|
<-conditions.*> \
|
|
<-fire> <-fire.payload.*>
|
|
handler delete <id>
|
|
|
|
EVENT COMMANDS
|
|
run <event name> <*=S>
|
|
|
|
NOTE: You may have to surround arguments including < or > with quotation marks!
|
|
`
|