Skip to content

cli: describe runtime subcommands in help output - #188

Merged
kstonekuan merged 1 commit into
Hebbian-Robotics:mainfrom
wuisabel-gif:fix/issue-61-cli-help
Aug 26, 2026
Merged

kstonekuan merged 1 commit into
Hebbian-Robotics:mainfrom
wuisabel-gif:fix/issue-61-cli-help

Conversation

@wuisabel-gif

Copy link
Copy Markdown
Contributor

Summary

  • Add descriptive help text for hflow down, hflow ingest, and hflow status.
  • Add CLI regression coverage verifying each command exposes its description.
  • Keep command behavior unchanged.

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 -q
  • uv run pytest -q
  • uv run ruff check src/hflow/cli.py tests/test_cli.py
  • uv run ruff format --check src/hflow/cli.py tests/test_cli.py
  • uv run ty check
  • git diff --check

Closes #61

@github-actions

Copy link
Copy Markdown

👋 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 kstonekuan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

@kstonekuan
kstonekuan merged commit b906fa6 into Hebbian-Robotics:main Aug 26, 2026
5 checks passed
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.

CLI: hflow down, ingest, and status print a bare --help with no description

2 participants