Repository navigation
cli: describe runtime subcommands in help output - #188
Conversation
|
👋 Hi @wuisabel-gif — thank you so much for your first contribution to HFlow! A maintainer will review your pull request as soon as possible. In the meantime:
💡 Tip: one open pull request per contributor at a time. Issues with an assignee are taken; everything else is fair game. We are excited to have you here and appreciate your help making the project better! 🙌 |
kstonekuan
left a comment
There was a problem hiding this comment.
Welcome, and thanks. Merging.
Validated locally, since first-time CI is held behind an approval gate: 973 passed, ruff, format, and ty clean. I also rendered all three help screens to check the text wraps sensibly, and checked the down description against the code, since it is the only one making a factual claim: --volumes does exist and does remove the metadata-DB and user-venv volumes, so that sentence is right.
The parametrized test is a real tripwire. I removed the down description and it went red.
If you want another, there is a natural follow-up: dataset, export, and serve have the same gap. serve is a plain command like these three. dataset and export have subcommands of their own, so decide whether a parent parser wants a description of its own or just the subcommand list, and say which you chose. #61 named only the three you did, so this PR is complete as scoped.
One thing for next time: open the follow-up after this merges rather than alongside it. A bot closes a second open PR from the same author while the first is still open, and it is easier to avoid than to explain.
Summary
hflow down,hflow ingest, andhflow status.Motivation
These runtime subcommands previously displayed only their usage and options when
invoked with
--help. The added descriptions explain what each command does,what it requires, and what operators can expect it to print.
Testing
uv run pytest tests/test_cli.py -quv run pytest -quv run ruff check src/hflow/cli.py tests/test_cli.pyuv run ruff format --check src/hflow/cli.py tests/test_cli.pyuv run ty checkgit diff --checkCloses #61