Skip to main content

Module spec

Module spec 

Source
Expand description

Questions written on the command line: ID=INSTRUCTIONS, then |-separated criteria.

  • --noul 'is_urgent=Does this message convey urgency?', or with what a yes and a no mean: --noul 'is_urgent=Is it urgent?|Explicitly time-sensitive|No urgency expressed'
  • --choice 'department=Which team should handle this?|billing:Payments, refunds|technical:Bugs|sales' (each option is NAME or NAME:DESCRIPTION)
  • --score 'frustration=How frustrated is the customer?|Calm|Frustrated|Very angry' (lowest first)

Text with a | in it, or structured criteria, go in a --questions file instead.

Enums§

Kind
Which flag a question came from.

Functions§

parse
The question spec writes, under its id. The error says what’s wrong with it.
questions_file
A -q file’s questions, in the order the file has them. The text is the file’s; where it came from — the terminal’s disk or the shell’s files — is the caller’s business.