Skip to content

feat(cli): add cvs man command - #344

Open
speriaswamy-amd wants to merge 1 commit into
speriaswamy/cvsman-10-config-registryfrom
speriaswamy/cvsman-11-man-plugin
Open

feat(cli): add cvs man command#344
speriaswamy-amd wants to merge 1 commit into
speriaswamy/cvsman-10-config-registryfrom
speriaswamy/cvsman-11-man-plugin

Conversation

@speriaswamy-amd

Copy link
Copy Markdown
Contributor

Part 11 of 14 in a stack for AIMVT-276.
Base: #343.

Why

With man_lib (introspection) and config_registry (test-to-schema mapping)
both in place, this wires them into a user-facing command: cvs man [<test>] [<parameter>], so config parameters are documented straight from
the pydantic schemas that validate them instead of scattered JSON comments.

What changed

  • Added cvs/cli_plugins/man_plugin.py: a third ListPlugin subclass. With
    no args, lists documented tests; with a test name, renders its full config
    doc (text or --json); with a parameter name, explains just that
    parameter. Unknown test/parameter names exit non-zero with the error on
    stderr in JSON mode.
  • Added cvs/cli_plugins/unittests/test_man_plugin.py.
  • Updated cvs/unittests/test_main.py's expected plugin order to include man.

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.

1 participant