File tree Expand file tree Collapse file tree 1 file changed +49
-47
lines changed Expand file tree Collapse file tree 1 file changed +49
-47
lines changed Original file line number Diff line number Diff line change @@ -4052,63 +4052,65 @@ The environment variable should be evaluated by the engine prior to injecting it
4052
4052
4053
4053
4054
4054
<details >
4055
- <summary >
4056
-
4057
- ``` wdl
4058
- version 1.2
4055
+ <summary >
4056
+ Example: environment_variables.wdl
4057
+
4058
+ ``` wdl
4059
+ version 1.2
4059
4060
4060
- task test {
4061
- input {
4062
- env String greeting
4063
- }
4064
- command <<<
4065
- echo $foo
4066
- >>>
4067
- output {
4068
- String out= read_string(stdout())
4061
+ task test {
4062
+ input {
4063
+ env String greeting
4064
+ }
4065
+ command <<<
4066
+ echo $foo
4067
+ >>>
4068
+ output {
4069
+ String out= read_string(stdout())
4070
+ }
4069
4071
}
4070
- }
4071
4072
4072
- workflow environment_variable_should_echo {
4073
- input {
4074
- String greeting
4075
- }
4076
-
4077
- call test {
4078
- input: greeting = greeting
4079
- }
4080
-
4081
- output {
4082
- String out = test.out
4073
+ workflow environment_variable_should_echo {
4074
+ input {
4075
+ String greeting
4076
+ }
4077
+
4078
+ call test {
4079
+ input: greeting = greeting
4080
+ }
4081
+
4082
+ output {
4083
+ String out = test.out
4084
+ }
4083
4085
}
4084
- ```
4085
- </summary >
4086
- <p >
4087
- Example input:
4086
+ ```
4087
+ </summary >
4088
+ <p >
4089
+ Example input:
4088
4090
4089
- ``` json
4090
- {
4091
- "environment_variable_should_echo.greeting" : " hello"
4092
- }
4093
- ```
4091
+ ``` json
4092
+ {
4093
+ "environment_variable_should_echo.greeting" : " hello"
4094
+ }
4095
+ ```
4094
4096
4095
- Example output:
4097
+ Example output:
4096
4098
4097
- ``` json
4098
- {
4099
- "environment_variable_should_echo.out" : " hello"
4100
- }
4101
- ```
4099
+ ``` json
4100
+ {
4101
+ "environment_variable_should_echo.out" : " hello"
4102
+ }
4103
+ ```
4102
4104
4103
- Test config:
4105
+ Test config:
4104
4106
4105
- ``` json
4106
- {
4107
- "fail" : false
4108
- }
4109
- ```
4107
+ ``` json
4108
+ {
4109
+ "fail" : false
4110
+ }
4111
+ ```
4110
4112
4111
- </p >
4113
+ </p >
4112
4114
</details >
4113
4115
4114
4116
#### String Escaping and Injection Prevention
You can’t perform that action at this time.
0 commit comments