Driver command with preset options

Cobra's preferences schema will work, but the display will refresh on each entry selection. Not bad.

I believe the pulldown is define within the metadata commands. For fun, try the below code in a test driver then enter text in each of the three entry parameters. Execute and see results.

command "Test", ["On", "Off", "Really?"]

def Test(a,b,c) {
log.info a
log.info b
log.info c
}

def Test(a,b,c) {
log.info a
log.info b
log.info c
}

Raises some questions:

  1. How do I insert a pull-down in this line? (original question).
  2. Is it possible to range check an input within this line rather than code?
  3. Can I change the 2nd line of the displayed tile (currently a repeat of the top line or visa versa) within the command to indicate something useful?

Would be nice to hear from staff on this.