Files
jamesread e5d29b68da fix: close shellAfterCompleted output injection bypass, and docs consistency
Rewrite all output/exitCode template forms to env refs and omit them
  from template args so command output cannot reach sh -c.
  (GHSA-vc6p)
2026-07-28 16:57:52 +01:00

24 lines
635 B
Plaintext

[#confirmation]
= Input: Checkbox/Boolean
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.
Define `choices` for the checked/unchecked values. A checkbox **without** choices is not allowed with `shell:` (use `exec:` instead).
[source,yaml]
----
actions:
- title: remove files
shell: rm {{ useTheForce }} /tmp/Downloads/
arguments:
- title: Use rm -rf?
name: useTheForce
type: checkbox
choices:
- title: 1
value: "-rf"
- title: 0
value: ""
----