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

3 years ago
3 years ago
3 years ago
  1. package main
  2. const helpString = `
  3. lucy lucifer CLI
  4. EXAMPLES
  5. lucy set tag:Hexagon color=hs:35,1 intensity=0.3
  6. lucy run SetProfile name=evening
  7. DEVICE COMMANDS
  8. list <search>
  9. set <search> <power=B> <color=C> <intensity=F> <temperature=N>
  10. tag <search> <[+/-]tag-name>
  11. update <search> <name=S> <icon=S> <prop.*=S/NULL>
  12. EVENT HANDLER COMMANDS
  13. handler list
  14. handler add <event> <search> \
  15. <one-shot=B> \
  16. <priority=N> \
  17. <from=TOD to=TOD> \
  18. <conditions.[any.*|all.*|*][<|<=|=|=>|>]*> \
  19. <set-power=B> <set-color=C> <set-intensity=F> <set-temperature=N> \
  20. <add-intensity=F> \
  21. <fire.name=S> <fire.payload.*=S>
  22. handler edit <id> \
  23. (...all arguments from 'add', appending conditions and fire payload matchers...) \
  24. <event=S> <search=S>
  25. <-from> <-to> \
  26. <-set-power> <-set-color> <-set-intensity> <-set-temperature> \
  27. <-conditions.*> \
  28. <-fire> <-fire.payload.*>
  29. handler delete <id>
  30. EVENT COMMANDS
  31. run <event name> <*=S>
  32. NOTE: You may have to surround arguments including < or > with quotation marks!
  33. `