Skip to content

Fix CLI consistency: remove emojis from help strings, fix apm config invocation, update descriptions#212

Merged
danielmeppiel merged 3 commits intomainfrom
copilot/update-cli-consistency-report
Mar 9, 2026
Merged

Fix CLI consistency: remove emojis from help strings, fix apm config invocation, update descriptions#212
danielmeppiel merged 3 commits intomainfrom
copilot/update-cli-consistency-report

Conversation

Copy link
Contributor

Copilot AI commented Mar 9, 2026

Description

Addresses all 5 findings from the CLI Consistency Report (3 medium, 2 low).

apm config without subcommands — The config group had display logic for bare apm config but lacked invoke_without_command=True, so Click showed help text (exit 2) instead of the config table (exit 0).

Emoji removal — 4 top-level commands, 5 compile options, and 5 deps subcommands had emojis in help strings, violating the "no emojis in output" policy. Removed all of them.

--yes trailing period@click.confirmation_option on runtime remove used Click's default help text which ends with a period. Added explicit help= without it.

uninstall description — Updated from "Remove APM packages from apm.yml and apm_modules" → "Remove APM packages, their integrated files, and apm.yml entries" to reflect actual scope (prompts, agents, hooks, lockfile entries).

Docs — Removed emojis from all docs/cli-reference.md section headings to match CLI output.

Type of change

  • Bug fix
  • New feature
  • Documentation
  • Maintenance / refactor

Testing

  • Tested locally
  • All existing tests pass (1314 passed)
  • Added tests for new functionality (if applicable)

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

…ig group, update uninstall description, fix --yes trailing period

- Add invoke_without_command=True to config group so bare `apm config` shows config
- Remove emojis from command help strings (init, install, update, compile)
- Remove emojis from compile option descriptions (5 options)
- Remove emojis from deps subcommand help strings (list, tree, clean, update, info)
- Fix trailing period on runtime remove --yes option
- Update uninstall help to reflect full scope
- Remove emojis from all docs/cli-reference.md section headings

Co-authored-by: danielmeppiel <51440732+danielmeppiel@users.noreply.github.com>
Copilot AI changed the title [WIP] Update CLI consistency report for March 2026 Fix CLI consistency: remove emojis from help strings, fix apm config invocation, update descriptions Mar 9, 2026
@danielmeppiel danielmeppiel requested a review from Copilot March 9, 2026 17:30
@danielmeppiel danielmeppiel marked this pull request as ready for review March 9, 2026 17:31
@danielmeppiel danielmeppiel self-requested a review as a code owner March 9, 2026 17:31
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR aims to align the CLI and CLI reference docs with the “no emojis in output” policy, while also fixing apm config so that running it without subcommands shows the configuration view rather than Click help.

Changes:

  • Removed emojis from various CLI command/help strings and from docs/cli-reference.md section headings.
  • Fixed apm config bare invocation by enabling invoke_without_command=True.
  • Updated help/description strings (e.g., uninstall scope wording, explicit --yes help text for runtime remove).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
src/apm_cli/commands/deps.py Removes emojis from deps subcommand help strings.
src/apm_cli/cli.py Removes emojis from top-level/option help strings; fixes apm config invocation; tweaks uninstall and runtime remove help text.
docs/cli-reference.md Removes emojis from CLI reference headings to match updated CLI output/help strings.



@deps.command(help="🌳 Show dependency tree structure")
@deps.command(help="Show dependency tree structure")
Copy link

Copilot AI Mar 9, 2026

Choose a reason for hiding this comment

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

There are trailing spaces at the end of this decorator line. This can cause noisy diffs and may fail formatting/lint checks; please remove the extra whitespace.

Copilot uses AI. Check for mistakes.
Comment on lines 4423 to 4427

@cli.group(help="Configure APM CLI")
@cli.group(help="Configure APM CLI", invoke_without_command=True)
@click.pass_context
def config(ctx):
"""Configure APM CLI settings."""
Copy link

Copilot AI Mar 9, 2026

Choose a reason for hiding this comment

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

Now that apm config runs without a subcommand, its output becomes a primary user-facing surface. The configuration table title includes an emoji (see the config_table = Table(... title=...) a few lines above), which seems to conflict with this PR’s “no emojis in output” goal; please remove emoji characters from this output as well.

Copilot uses AI. Check for mistakes.
Comment on lines 4423 to 4427

@cli.group(help="Configure APM CLI")
@cli.group(help="Configure APM CLI", invoke_without_command=True)
@click.pass_context
def config(ctx):
"""Configure APM CLI settings."""
Copy link

Copilot AI Mar 9, 2026

Choose a reason for hiding this comment

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

This change alters default CLI behavior (apm config now executes and prints config instead of showing help). There are existing Click/CliRunner tests for other CLI commands, but none covering apm config’s bare invocation; please add a test that invokes config with no subcommand and asserts a successful exit code and expected output.

Copilot uses AI. Check for mistakes.
Comment on lines +262 to 265
### `apm uninstall` - Remove APM packages

Remove installed APM packages and their integrated files.

Copy link

Copilot AI Mar 9, 2026

Choose a reason for hiding this comment

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

The uninstall section summary doesn’t mention that apm uninstall also removes entries from apm.yml (which is part of the command’s behavior and is called out later in the table/behavior list). Consider updating this one-line description to match the more complete scope described elsewhere (and the updated CLI help string).

Copilot uses AI. Check for mistakes.
@danielmeppiel danielmeppiel merged commit e7b81c1 into main Mar 9, 2026
7 checks passed
@danielmeppiel danielmeppiel deleted the copilot/update-cli-consistency-report branch March 9, 2026 17:39
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-consistency] CLI Consistency Report — 2026-03-09

3 participants