You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/scala/io/viash/config/resources/BashScript.scala
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,14 @@ case class BashScript(
33
33
is_executable: Option[Boolean] =Some(true),
34
34
parent: Option[URI] =None,
35
35
36
+
@description("""Whether to use jq for JSON parameter parsing and store multiple-value arguments as Bash arrays.
37
+
| - `true`: Use jq for JSON parsing. Arguments with `multiple: true` are stored as Bash arrays (e.g. `par_input=("a" "b" "c")`). Requires jq to be installed.
38
+
| - `false`: Use the built-in JSON parser. Arguments with `multiple: true` are stored as separator-delimited strings (e.g. `par_input="a;b;c"`), using the argument's `multiple_sep` (default `";"`).
39
+
| - Not specified (default): Same behavior as `false`, but a deprecation warning is shown at build time indicating that the default will change to `true` in a future version of Viash.""")
40
+
@example("use_jq: true", "yaml")
41
+
@since("Viash 0.10.0")
42
+
use_jq: Option[Boolean] =None,
43
+
36
44
@description("Specifies the resource as a Bash script.")
0 commit comments