mirror of
https://github.com/OliveTin/OliveTin
synced 2026-08-25 20:16:30 +00:00
Rewrite all output/exitCode template forms to env refs and omit them from template args so command output cannot reach sh -c. (GHSA-vc6p)
24 lines
635 B
Plaintext
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: ""
|
|
----
|