forked from common-workflow-language/cwltool
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Port draft-3 changes to command line generation tests to draft-4.
- Loading branch information
Peter Amstutz
committed
Jun 10, 2016
1 parent
f2a18c3
commit 3cc79d2
Showing
12 changed files
with
129 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env python | ||
import sys | ||
import json | ||
import os | ||
args = [os.path.basename(a) for a in sys.argv[1:]] | ||
with open("cwl.output.json", "w") as f: | ||
json.dump({"args": args}, f) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/usr/bin/env cwl-runner | ||
{ | ||
"class": "CommandLineTool", | ||
"cwlVersion": "cwl:draft-4.dev2", | ||
"description": "Print the contents of a file to stdout using 'cat' running in a docker container.", | ||
"inputs": [ | ||
{ | ||
"id": "file1", | ||
"type": "File", | ||
"inputBinding": {"position": 1} | ||
}, | ||
{ | ||
"id": "numbering", | ||
"type": ["null", "boolean"], | ||
"inputBinding": { | ||
"position": 0, | ||
"prefix": "-n" | ||
} | ||
}, | ||
{ | ||
id: "args.py", | ||
type: File, | ||
default: { | ||
class: File, | ||
path: args.py | ||
}, | ||
inputBinding: { | ||
position: -1 | ||
} | ||
} | ||
], | ||
"outputs": [], | ||
"baseCommand": "python", | ||
"arguments": ["cat"] | ||
} |
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters