fix: CLI consistency — align help text with docs#188
fix: CLI consistency — align help text with docs#188sergio-sisternes-epam merged 7 commits intomainfrom
Conversation
…h docs Co-authored-by: sergio-sisternes-epam <207026618+sergio-sisternes-epam@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
This PR addresses CLI consistency by adding missing emojis to command help strings and updating docs/cli-reference.md to better match current CLI behavior and terminology.
Changes:
- Added contextual emojis to previously unadorned top-level commands/groups (e.g., deps/config/runtime/mcp/prune/run/preview/list/uninstall).
- Refined
init --yesandconfig set/gethelp strings for clarity/consistency. - Updated
docs/cli-reference.mdforuninstallvariadic args and severalcompileoption descriptions.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
| src/apm_cli/commands/deps.py | Adds emoji to apm deps group help for consistent apm --help output. |
| src/apm_cli/cli.py | Adds emojis and tweaks help strings across multiple top-level commands and config subcommands. |
| docs/cli-reference.md | Updates uninstall usage/args and aligns several compile option descriptions with CLI wording. |
You can also share your feedback on Copilot code review. Take the survey.
docs/cli-reference.md
Outdated
| - `--chatmode TEXT` - Chatmode to prepend to the AGENTS.md file | ||
| - `--dry-run` - Generate content without writing file | ||
| - `--dry-run` - Preview compilation without writing files (shows placement decisions) | ||
| - `--no-links` - Skip markdown link resolution |
There was a problem hiding this comment.
The apm compile section header/description in this doc still reads like single-file compilation into one AGENTS.md (and uses a different emoji) while the CLI help describes distributed compilation (“🚀 … distributed AGENTS.md files”). Since this section is being updated for option text, it would be good to also update the section title/intro sentences to reflect the current distributed-by-default behavior and match the CLI wording.
src/apm_cli/cli.py
Outdated
| @config.command(help="⚙️ Set a configuration value") | ||
| @click.argument("key") | ||
| @click.argument("value") |
There was a problem hiding this comment.
Docs drift: docs/cli-reference.md currently documents this subcommand as “apm config set - Set a configuration value” (no ⚙️ prefix). Since the CLI help was updated to include the emoji/text tweak, consider updating the corresponding docs heading to match for consistency.
src/apm_cli/cli.py
Outdated
| @config.command(help="⚙️ Get a configuration value") | ||
| @click.argument("key", required=False) |
There was a problem hiding this comment.
Docs drift: docs/cli-reference.md currently documents this subcommand as “apm config get - Get a configuration value” (no ⚙️ prefix). Since the CLI help was updated, consider updating the docs heading/text to match so users see consistent help across apm --help and the reference.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
@copilot apply changes based on the comments in this thread |
…der and config headings in docs Co-authored-by: sergio-sisternes-epam <207026618+sergio-sisternes-epam@users.noreply.github.com>
Applied all changes from the review thread in ab0f478:
|
|
@copilot we don't want any emojis in any output. That's clearly stated in the CLI scoped instructions module. @sergio-sisternes-epam |
Co-authored-by: danielmeppiel <51440732+danielmeppiel@users.noreply.github.com>
Done in c6ace2e — removed all emojis added by this PR from CLI help strings ( All non-emoji text improvements (variadic |
|
@copilot apply changes based on the comments in this thread |
All changes from the review thread are already applied in the current commits (c6ace2e):
No emojis were added, per @danielmeppiel's direction. |
Addresses help text and documentation mismatches from the 2026-03-06 CLI Consistency Report (3 medium, 2 low severity): mismatched help text between CLI and docs, and stale documentation. No emoji changes were made, per project conventions.
Description
CLI (
cli.py)runtimehelp text corrected:"Manage Coding Agent CLI runtimes"→"Manage AI runtimes"(aligned with docs)mcphelp text corrected:"Manage MCP servers"→"Browse MCP server registry"(aligned with docs)config set/config getsubcommands:"Set/Get configuration value"→"Set/Get a configuration value"(grammatical fix)init --yes:"Skip prompts..."→"Skip interactive prompts..."(matches docs)Docs (
docs/cli-reference.md)apm uninstallusage:PACKAGE [OPTIONS]→[OPTIONS] PACKAGES...; argument description updated to reflect variadic inputcompilesection header: updated to reflect distributed-by-default behavior:"Compile APM context files into AGENTS.md"→"Compile APM context into distributed AGENTS.md files"compile --output: removed undocumenteddefault: AGENTS.mdclaim; aligned to"Output file path (for single-file mode)"compile --dry-run:"Generate content without writing file"→"Preview compilation without writing files (shows placement decisions)"compile --validate:"Validate context without compiling"→"Validate primitives without compiling"Type of change
Testing
Original prompt
This section details on the original issue you should resolve
<issue_title>[cli-consistency] CLI Consistency Report — 2026-03-06</issue_title>
<issue_description>## CLI Consistency Report
Date: 2026-03-06
APM Version: 0.7.4 (251fa5e)
Commands Inspected: 28 (including all subcommands)
Summary
Medium Severity
apm uninstallaccepts multiple packages but docs show singularPACKAGEapm uninstallPACKAGES...(variadic, one or more), but the documentation shows only a singular argumentPACKAGE. The argument order also differs: CLI is[OPTIONS] PACKAGES...but docs showPACKAGE [OPTIONS].Usage: apm uninstall [OPTIONS] PACKAGES...cli-reference.md):apm uninstall PACKAGE [OPTIONS]and "PACKAGE - Package to uninstall."cli-reference.mdto usePACKAGES...(plural) in the usage line, and update the argument description to reflect that multiple packages can be uninstalled in a single call.apm compile --outputdescription mismatch between CLI and docsapm compile --output--outputflag differently. The docs claim a default ofAGENTS.md, which the CLI does not confirm. The CLI notes it is limited to single-file mode, which the docs omit.-o, --output TEXT Output file path (for single-file mode)- \-o, --output TEXT` - Output file path (default: AGENTS.md)`apm compile --dry-rundescription meaningfully differs between CLI and docsapm compile --dry-run--dry-run 🔍 Preview compilation without writing files (shows placement decisions)- \--dry-run` - Generate content without writing file`Low Severity
Emoji inconsistency in top-level
apm --helpcommand listapm --helpapm --help:compile(🚀),init(🚀),install(📦),update(⬆️). The other 9 (config,deps,list,mcp,preview,prune,run,runtime,uninstall) have no emoji. This is visually inconsistent.list→📋,preview→👀,prune→🧹,run→🚀,config→⚙️,deps→🔗,mcp→🔌,runtime→🤖,uninstall→🗑️).apm config set/apm config getmissing emojis and terse descriptionsapm config set,apm config getapm deps list→📋 List installed APM dependencies,apm deps info→ℹ️ Show detailed package information).apm config set --help:Set configuration valueapm config get --help:Get configuration valueapm deps list --help:📋 List installed APM dependencies⚙️ Set a configuration valueand⚙️ Get a configuration valuefor consistency.apm compile --validateuses "primitives" in CLI vs "context" in docsapm compile --validate--validate Validate primitives without compiling- \--validate` - Validate context without compiling`apm init --yesdrops "interactive" in CLI vs docs description✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.