Skip to content

B10: CLI output and documentation sweep #103

Closed

Description

@Claptar

Part of #87.

wave 4 · 0.17.6 · size M · starts after: everything else (it edits cli.py and the docs other batches touch)

Goal. Output pipes cleanly, help matches behaviour, and the docs match the code after all the fixes above.

Owns: cli.py (help text, console), commands/{info,ls}.py, AGENTS.md, docs/, STATUS.md

Approach:

  • Escape Rich markup in store-derived strings (F042, F160).
  • view on a missing entry exits 1 via stderr (F096).
  • The stderr console stops forcing ANSI codes when it is not a TTY (F151).
  • main(argv) honours its argv (F161).
  • Fix help and reference contradictions (F159).
  • Bring AGENTS.md, developers.md, testing.md, troubleshooting.md and STATUS.md up to date (F149, F150, F155, F157).

Findings

Ref Sev Finding Where
F042 M Store member names containing square brackets are parsed as Rich markup, so view/ls silently mangle them (or crash on '[/') src/adata/commands/ls.py:109
F096 L view FILE ENTRY on a missing entry prints 'Error:' to stdout and exits 0 src/adata/commands/info.py:157
F149 L AGENTS.md, developers.md and pyproject comments have drifted from the code AGENTS.md:13
F150 L STATUS.md lists two already-released fixes under "Follow-ups noticed" STATUS.md:37
F151 L The pipeline docs promise one stderr line starting Error:, but the console forces ANSI codes, spinner control sequences and 80-column … docs/guides/pipelines.md:117
F155 L testing.md's suite map omits the spatial, scatter, staging and write-safety test files and describes the external-reader job as 10x only docs/reference/testing.md:19
F157 L The memory and image docs disagree with the code: the "three things held whole" list is incomplete, and the 0.17.1 changelog says images … docs/troubleshooting.md:230
F159 L Command help and reference contradict each other or overclaim: --inplace text, split flags, --to choices, create's names, "to and from" src/adata/cli.py:297
F160 L convert --help drops the extras from its install hints: Rich reads [spatial] and [pickle] as markup tags src/adata/cli.py:821
F161 L main(argv) / main_deprecated(argv) ignore their argv parameter src/adata/cli.py:1773

Done when one PR on fix/b10 closes this, with a regression test against an oracle for every finding, and docs and changelog in the same PR.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions