-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improvements and updates to cwl-runner implementation.
- Update cwl-runner for changing command name from cwl_run to run. - Handle (in at least a minimal fashion) all arguments required to be used by conformance test code.
- Loading branch information
Showing
2 changed files
with
44 additions
and
2 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 |
---|---|---|
@@ -1,3 +1,42 @@ | ||
#!/bin/sh | ||
#!/bin/bash | ||
|
||
planemo cwl_run "$@" | ||
PLANEMO_BIN="${PLANEMO_BIN:-planemo}" | ||
PLANEMO_ARGS="${PLANEMO_ARGS:-}" | ||
|
||
VERBOSE_ARG="--verbose" | ||
USE_CONTAINER=0 | ||
|
||
# Pop args meant for common_startup.sh | ||
while : | ||
do | ||
case "$1" in | ||
--version|--help) | ||
$PLANEMO_BIN "$1" | ||
exit $? | ||
;; | ||
--no-container) | ||
USE_CONTAINER=1 | ||
shift | ||
;; | ||
--quiet) | ||
VERBOSE_ARG="" | ||
shift | ||
;; | ||
--basedir*) | ||
BASEDIR=`echo $1 | sed -e 's/^[^=]*=//g'` | ||
#echo `pwd` | ||
#cd "$BASEDIR" | ||
shift | ||
;; | ||
"") | ||
break | ||
;; | ||
*) | ||
PLANEMO_ARGS="$PLANEMO_ARGS $1" | ||
shift | ||
;; | ||
esac | ||
done | ||
|
||
# TODO: Do something with USE_CONTAINER | ||
$PLANEMO_BIN $VERBOSE_ARG run $PLANEMO_ARGS |