Skip to content

docs(cli): document plugins, policy-file and memory seed, and keep CLI.md complete - #739

Merged
fu351 merged 2 commits into
DobermanCore:mainfrom
dchaudhari7177:docs/721-cli-md-coverage
Oct 8, 2026
Merged

fu351 merged 2 commits into
DobermanCore:mainfrom
dchaudhari7177:docs/721-cli-md-coverage

Conversation

@dchaudhari7177

Copy link
Copy Markdown
Contributor

Closes #721 (and its PostHog twin #732).

What changes

docs/CLI.md gets a row, in the same table shape as its neighbours (what it does + key flags), for each registered command it didn't mention:

  • doberman policy-file (next to policy-versions): status of doberman.policy.yaml (present/absent, applied globs, rejected reason, pending drops), and --accept behind diff confirmation plus the strongest possession factor, with no --yes bypass.
  • doberman plugins list / enable NAME / disable NAME (after the approvals rows): opt-in by name; list shows names and states without loading anything; disabling a name that was never enabled is a no-op.
  • doberman memory seed (next to memory reset / memory prune). The test below found this one too: it isn't in the issue, but it was also missing from the page. It links to BASELINE_SEEDING.md.

The Examples block gains doberman policy-file, doberman plugins list and doberman plugins enable my_rule.

The guard

tests/unit/test_cli_help.py::test_cli_md_documents_every_visible_command walks get_command(app) the way the help-target test above it does, skipping hidden commands. It asserts each command and group path appears in docs/CLI.md as `doberman <path>, which allows trailing arguments such as NAME or [NAME]. On main it fails with:

docs/CLI.md does not mention: policy-file, plugins, plugins list, plugins enable, plugins disable, memory seed

On this branch test_cli_help.py gives 87 passed, and pytest tests/unit -k "doc or cli_md or CLI" passes. ruff is clean.

AI assistance: I used an AI assistant to draft the doc rows and the test. I checked each row against the command's code and --help, and ran the tests above myself.

…I.md complete

docs/CLI.md covered every registered command except plugins (list,
enable, disable), policy-file and memory seed. Add a row for each, add
policy-file and plugins examples, and add a test that walks the
registered non-hidden commands and asserts each appears in CLI.md, so
the page cannot drift again.

Closes DobermanCore#721
@fu351
fu351 merged commit 20b3cc2 into DobermanCore:main Oct 8, 2026
12 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.

docs: CLI.md is missing plugins and policy-file, and nothing keeps it complete

2 participants