Argument types
A full list of argument types are below;
| Type | Rendered as | Allowed values |
|---|---|---|
(default) |
If a |
|
ascii |
|
|
ascii_identifier |
|
|
dnsname |
A DNS hostname (RFC 1123). Short names (e.g. |
|
shell_safe_identifier |
Like an ascii identifier, but also allows |
|
ascii_sentence |
|
|
unicode_identifier |
Same character class as Go’s |
|
An email address (parsed with Go’s |
||
password |
Any string (not type-checked). Hidden in the UI. Not allowed with |
|
very_dangerous_raw_string |
Anything. This is incredibly dangerous, as effectively people can type anything they like, including executing additional commands beyond what you specify. Absolutely should not be used unless your OliveTin instance can only be used by people you trust entirely. Not allowed with |
|
regex:… |
Custom regex patterns. See Custom regex arguments. Not allowed with |
|
int |
Digits |
|
url |
A URL with scheme |
|
datetime |
A local datetime in the form |
|
confirmation |
A UI gate that requires a checkbox before starting. Usually unnamed (nothing is substituted). If named, the value is only |
|
checkbox |
Typically used with |
|
checklist |
Multiple checkboxes from predefined choices. Selected values are passed as a JSON array string (e.g. |
|
n/a, but |
Predefined choices shown as a dropdown. The submitted value must match one of the choice values (or an entity-expanded choice). |
|
raw_string_multiline |
Anything (not type-checked). Dangerous, and not allowed with |
Types that cannot be used with shell:
When an action uses shell: (including with arguments substituted into the command string), OliveTin rejects these argument types and asks you to use exec: instead:
-
url -
email -
password -
raw_string_multiline -
very_dangerous_raw_string -
html(internal/display-oriented; skips normal type checks) -
any custom
regex:…type -
checkboxwhen it has nochoices
See Shell vs Exec.
|
URL schemes
The |