input_checkbox.adoc 500 B

123456789101112131415161718192021
  1. [#confirmation]
  2. = Input: Checkbox/Boolean
  3. The `checkbox` type argument is a simple checkbox that can be used to toggle a boolean value. It can be especially useful to pass flags to your actions.
  4. [source,yaml]
  5. ----
  6. actions:
  7. - title: remove files
  8. shell: rm {{ useTheForce }} /tmp/Downloads/
  9. arguments:
  10. - title: Use rm -rf?
  11. name: useTheForce
  12. type: checkbox
  13. choices:
  14. - title: 1
  15. value: "-rf"
  16. - title: 0
  17. value: ""
  18. ----