input_textarea.adoc 525 B

123456789101112131415161718192021
  1. [#arg-textarea]
  2. = Input: Textarea
  3. OliveTin supports multi-line text inputs, which can be useful for longer messages or scripts. You should set your argument `type` to `raw_string_multiline` to use these.
  4. As the name implies, textareas are raw, and are NOT validated by any regex.
  5. [source,yaml]
  6. .`config.yaml`
  7. ----
  8. actions:
  9. - title: Save text to file
  10. shell: echo "$CONTENT" > file
  11. arguments:
  12. - type: raw_string_multiline
  13. name: content
  14. ----
  15. This renders like this;
  16. image::args-multiline-text.png[]