Skip to content

docs: link cwl-docker-extract from CWL_SINGULARITY_CACHE help (#1537)#2289

Open
arimu1 wants to merge 2 commits into
common-workflow-language:mainfrom
arimu1:docs/1537-document-singularity-cache
Open

docs: link cwl-docker-extract from CWL_SINGULARITY_CACHE help (#1537)#2289
arimu1 wants to merge 2 commits into
common-workflow-language:mainfrom
arimu1:docs/1537-document-singularity-cache

Conversation

@arimu1

@arimu1 arimu1 commented Jun 18, 2026

Copy link
Copy Markdown

Summary

Addresses #1537, which asked to document CWL_SINGULARITY_CACHE and link to the cwl-utils Pull the all referenced software container images reference.

The variable is now listed in the environment-variable table (introduced when the CLI groups were reorganized), so it appears in cwltool --help and the autogenerated Sphinx CLI docs. What was still missing is the second half of the request: pointing users at how to pre-populate that cache.

Change

Extend the CWL_SINGULARITY_CACHE entry in cwltool/argparser.py to link to cwl-utils' cwl-docker-extract, which pre-pulls all referenced container images into a directory. It uses the existing [link=...] markup (same as the ORCID entry), so it renders correctly in both outputs:

cwltool --help (terminal hyperlink):

CWL_SINGULARITY_CACHE │ directory path to find already downloaded
                      │ Singularity images; dockerFile images will also be
                      │ searched for and stored here. Images can be
                      │ pre-pulled into this directory using
                      │ cwl-docker-extract from cwl-utils

Sphinx CLI docs (reStructuredText):

.. envvar:: CWL_SINGULARITY_CACHE

    directory path to find already downloaded Singularity images; ``dockerFile`` images
    will also be searched for and stored here. Images can be pre-pulled into this directory
    using `cwl-docker-extract <https://github.com/common-workflow-language/cwl-utils#pull-the-all-referenced-software-container-images>`__ from cwl-utils

Verified the cwl-utils anchor still resolves, the parser still builds, and black/flake8 are clean. Docs-only string change. Once this lands, #1537 can be closed.


This change was produced with the assistance of Claude Code (model: Claude Opus). It was reviewed by a human before submission.

…-workflow-language#1537)

Issue common-workflow-language#1537 asked to document CWL_SINGULARITY_CACHE and link to the
cwl-utils "pull all referenced software container images" reference.

The variable itself is now listed in the environment-variable table
(shown in `cwltool --help` and the Sphinx CLI docs), but it did not
point users at how to pre-populate the cache. Add a link to
cwl-utils' cwl-docker-extract, using the existing [link=...] markup
so it renders both as a terminal hyperlink and as a reStructuredText
link in the generated docs.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Comment thread cwltool/argparser.py Outdated
f"[{bt}]dockerFile[/] images will also be searched for and stored here",
f"[{bt}]dockerFile[/] images will also be searched for and stored here. "
f"Images can be pre-pulled into this directory using "
f"[link=https://github.com/common-workflow-language/cwl-utils#pull-the-all-referenced-software-container-images]cwl-docker-extract[/] from cwl-utils",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

…workflow-language#1537)

Per review feedback, link to the stable cwl-utils documentation page
(https://cwl-utils.readthedocs.io/en/latest/#cwl-docker-extract) instead
of the GitHub README anchor.
@arimu1

arimu1 commented Jun 20, 2026

Copy link
Copy Markdown
Author

Good call — switched the link to the stable cwl-utils docs page: https://cwl-utils.readthedocs.io/en/latest/#cwl-docker-extract (confirmed the #cwl-docker-extract anchor is present). Pushed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants