Skip to content

fix(cli): OS-aware help for installed users (#1130)#1132

Draft
FabioLeitao wants to merge 6 commits into
mainfrom
fix/1130-help-os-aware
Draft

fix(cli): OS-aware help for installed users (#1130)#1132
FabioLeitao wants to merge 6 commits into
mainfrom
fix/1130-help-os-aware

Conversation

@FabioLeitao

Copy link
Copy Markdown
Collaborator

Summary

Closes #1130 (help OS-aware steering v2).

Installed-user surfaces (data-boar --help, dashBOARd /help):

  • CLI epilog uses argparse %(prog)s (data-boar when installed, python main.py in dev).
  • dashBOARd /help shows only data-boar in command examples; filesystem paths use concrete Path.home() (no ~).
  • Locale run_cli_p1 targets PATH/pipx installs — no uv run / python main.py.

Repo docs (README / CONTRIBUTING / QUICKSTART): unchanged — still document all dev modalities on purpose.

Commits (split-by-subject)

  1. fix(cli)utils/cli_presentation.py + main.py
  2. fix(api)help.html + routes.py
  3. fix(api) — locales + build_locale_catalogs.py source
  4. test(cli)test_cli_presentation.py + manifest note

Test plan

  • ./scripts/check-all.sh green locally
  • pytest tests/test_cli_presentation.py tests/test_operator_help_sync.py — 12/12
  • CI on PR
  • Claude auditor review on real diff (before merge)

Follow-up (same PR, after audit — separate prompt)

Made with Cursor

Extract cli_presentation (prog detection, Path.home() examples, epilog
template). main.py uses dynamic prog and argparse %(prog)s substitution.
…1130)

Wire cli_help_context into help_page; template uses literal data-boar and
Path.home()-based filesystem example instead of ~ or dev python main.py.
dashBOARd help intro copy targets pipx/PATH installs; sync catalog source
strings in build_locale_catalogs.py.
Add test_cli_presentation; clarify operator_help_sync manifest that dev
uv flows belong in repo docs, not installed-user surfaces.
SYNOPSIS and EXAMPLES in data_boar.1 plus api/TLS notes in data_boar.5
show the installed command (man data-boar), not python main.py.
…1131)

Fail if docs/data_boar.1 or data_boar.5 contain uv run or python main.py
in installed-user troff sources; dev modalities stay in repo docs only.
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.

[P1][bugfix][ux] post3: help mostra data-boar + caminho concreto por-OS (não uv run main.py nem ~)

1 participant