Skip to content

Commit

Permalink
Add the sub-command "update-server" (#140)
Browse files Browse the repository at this point in the history
* Added the sub-command "update-server"

Co-authored-by: Stephen Fleming <[email protected]>
  • Loading branch information
sjfleming and sjfleming authored May 5, 2021
1 parent c2e8c7b commit 4787986
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ requires `column`, `curl`, `mail`, and [jq](https://stedolan.github.io/jq/)
where a completed state is one of: `Succeeded`, `Failed`, `Aborted`
* *`-s STATUS`* If provided, will only remove jobs with the given `STATUS` from the local list.

#### Update cromwell server
* `update-server`
* Change the cromwell server that new jobs will be submitted to.

### Features:
* Running `submit` will create a new folder in the `~/.cromshell/${CROMWELL_URL}/` directory named with the cromwell job id of the newly submitted job.
Expand Down
7 changes: 7 additions & 0 deletions cromshell
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,8 @@ function usage()
echo -e " Will remove all jobs from the local list that are in a completed state,"
echo -e " where a completed state is one of: $(echo ${TERMINAL_STATES} | tr ' ' ',' )"
echo -e " -s STATUS If provided, will only remove jobs with the given STATUS from the local list."
echo -e " Update cromwell server:"
echo -e " update-server Change which cromwell server jobs will be submitted to."
echo -e ""
echo -e "Return values:"
echo -e " 0 SUCCESS"
Expand Down Expand Up @@ -1840,6 +1842,11 @@ if ${ISINTERACTIVESHELL} ; then
# Get our sub-command:
SUB_COMMAND=${1}
shift

# Use the update-server sub-command to modify CROMWELL_NEEDS_SETUP here.
if [[ "${SUB_COMMAND}" == "update-server" ]] ; then
CROMWELL_NEEDS_SETUP=true
fi

# Check if we need to set this up.
# Note: because of how `notify` works, we can't require the setup for the notify action.
Expand Down

0 comments on commit 4787986

Please sign in to comment.