mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-12-08 20:38:47 +00:00
Add WDL language support (#3858)
* Add WDL language support * Add ace mode
This commit is contained in:
committed by
Colin Seymour
parent
a47008ea00
commit
e51b5ec9b7
42
samples/wdl/passingfiles.wdl
Normal file
42
samples/wdl/passingfiles.wdl
Normal file
@@ -0,0 +1,42 @@
|
||||
# Sample originally from https://github.com/broadinstitute/centaur
|
||||
|
||||
##
|
||||
# Check that we can:
|
||||
# - Create a file from a task and feed it into subsequent commands.
|
||||
# - Create a file output by interpolating a file name
|
||||
# - Use engine functions on an interpolated file name
|
||||
##
|
||||
|
||||
task mkFile {
|
||||
command {
|
||||
echo "small file contents" > out.txt
|
||||
}
|
||||
output { File out = "out.txt" }
|
||||
runtime { docker: "ubuntu:latest" }
|
||||
}
|
||||
|
||||
task consumeFile {
|
||||
File in_file
|
||||
String out_name
|
||||
|
||||
command {
|
||||
cat ${in_file} > ${out_name}
|
||||
}
|
||||
runtime {
|
||||
docker: "ubuntu:latest"
|
||||
}
|
||||
output {
|
||||
File out_interpolation = "${out_name}"
|
||||
String contents = read_string("${out_name}")
|
||||
String contentsAlt = read_string(out_interpolation)
|
||||
}
|
||||
}
|
||||
|
||||
workflow filepassing {
|
||||
call mkFile
|
||||
call consumeFile {input: in_file=mkFile.out, out_name = "myFileName.abc.txt" }
|
||||
output {
|
||||
consumeFile.contents
|
||||
consumeFile.contentsAlt
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user