Skip to content

Commit

Permalink
Minor pre-release fixes
Browse files Browse the repository at this point in the history
- Fixed the `cwl-runner` behaviour to avoid unallowed characters in the
auto-generated workflow name;
- Fixed the Documentation index to hide the Table of Contents in the
home page.
  • Loading branch information
GlassOfWhiskey authored and colonne committed Dec 25, 2021
1 parent 358a9f6 commit d3a2752
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,22 @@ For LaTeX users, the following BibTeX entry can be used:
.. toctree::
:caption: Getting Started
:hidden:

install.rst
architecture.rst
operations.rst

.. toctree::
:caption: CWL Standard
:hidden:

cwl/cwl-conformance.rst
cwl/cwl-runner.rst

.. toctree::
:caption: Connectors
:hidden:

connector/docker.rst
connector/docker-compose.rst
Expand Down
4 changes: 2 additions & 2 deletions streamflow/cwl/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ async def _async_main(args: argparse.Namespace):
if len(workflows) == 1:
workflow_name = list(workflows.keys())[0]
elif len(workflows) == 0:
workflow_name = os.path.basename(args.processfile)
workflow_name = 'cwl-workflow'
streamflow_config['workflows'][workflow_name] = {}
else:
raise WorkflowDefinitionException(
"A StreamFlow file must contain only one workflow definition when used with cwl-runner.")
else:
workflow_name = os.path.basename(args.processfile)
workflow_name = 'cwl-workflow'
streamflow_config = {
'version': 'v1.0',
'workflows': {
Expand Down

0 comments on commit d3a2752

Please sign in to comment.