Skip to content

Document TemplateFlow CLI cache management and API stubs - #153

Merged
oesteban merged 5 commits into
masterfrom
codex/expand-cli-documentation-with-examples
Dec 3, 2026
Merged

oesteban merged 5 commits into
masterfrom
codex/expand-cli-documentation-with-examples

Conversation

@oesteban

Copy link
Copy Markdown
Member

Summary

  • expand the CLI documentation with cache-aware examples for config, update, and wipe
  • add DataLad usage callouts referencing the use_datalad flag in the DataLad guide
  • add Sphinx autodoc stubs for the client, API, and configuration modules and allow them to be tracked

Testing

  • not run (documentation only)

https://chatgpt.com/codex/tasks/task_e_68f70ac015ac833089f8dc7368a30f27

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread docs/cli.rst Resolved
@codecov

codecov Bot commented Oct 21, 2025 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.03%. Comparing base (d474dd8) to head (51dcc3b).
⚠️ Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #153      +/-   ##
==========================================
+ Coverage   84.02%   84.03%   +0.01%     
==========================================
  Files          10       10              
  Lines         920      921       +1     
  Branches      192      192              
==========================================
+ Hits          773      774       +1     
  Misses         83       83              
  Partials       64       64              
Flag Coverage Δ
api,datalad 44.95% <100.00%> (+0.05%) ⬆️
api,dls3 21.06% <100.00%> (+0.08%) ⬆️
api,s3 52.33% <100.00%> (+0.05%) ⬆️
config 81.97% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

oesteban and others added 5 commits December 3, 2026 19:56
sphinxcontrib-apidoc writes docs/api at every build, so the committed
pages were overwritten and their text never reached the published docs.
The text now lives in the docstrings of templateflow.api,
templateflow.client, templateflow.conf and templateflow.conf.cache, which
apidoc renders and help() shows; docs/api is ignored again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The CLI page documented commands and options that do not exist
(`templateflow config show`, `config set`, `update --silent`,
`--use-datalad`) and invented the output of `update` and `wipe`.
Rewrite those sections from the real commands: `config` only prints
the settings, which come from environment variables or
TemplateFlowClient arguments; `update` adds missing skeleton files and
keeps existing ones; `wipe` asks twice and deletes nothing in DataLad
mode. The DataLad page's tip now points to the environment variable.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`templateflow config` now shows the home's layout, and `update` works
differently in v2 homes (matched to the skeleton, with a one-line
summary) and legacy homes (the 25.x listing); `--migrate` moves a
legacy home to v2. Checked on a new home, a home created by
templateflow 25.1.2, and its migration.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@oesteban
oesteban force-pushed the codex/expand-cli-documentation-with-examples branch from c2c90c5 to 51dcc3b Compare December 3, 2026 19:01
@oesteban
oesteban merged commit 0224feb into master Dec 3, 2026
17 checks passed
@oesteban
oesteban deleted the codex/expand-cli-documentation-with-examples branch December 3, 2026 19:27
oesteban added a commit that referenced this pull request Dec 3, 2026
Before tagging 26.0.0rc1: the docs pull requests
(#151, #152,
#153) and the docs build fix
(#163) had no entry.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant