You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Crane: crane-migration-python-to-go-full-apm-cli-rewrite] Iteration 27: Add real Python-vs-Go stdout comparison tests and fix help text parity
- Add cmd/apm/parity_stdout_test.go: 35 TestParityStdout* tests comparing
Python vs Go stdout for all 13 commands with identical help text
- Fix preview command to return exit 1 when script not found (parity with Python)
- Fix printCmdHelp: correct positional arg signatures for 8 commands
- Fix multi-line description rendering and --help option sourcing
- Update cmdmeta.go: complete Python-matching option sets for 13 commands
- Update/create golden test fixtures for 9 commands
- Update TestParityHarnessPreviewInTempRepo to use yaml with build script
- Document 17 approved Python-vs-Go output format exceptions
- Score: migration_score=1.0 (675/675 parity tests passing)
Run: https://github.com/githubnext/apm/actions/runs/26543455081
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
"install": "Install APM and MCP dependencies (supports APM packages, Claude skills\n(SKILL.md), and plugin collections (plugin.json); auto-creates apm.yml; use\n--allow-insecure for http:// packages)",
15
+
"install": "Install APM and MCP dependencies (supports APM packages, Claude skills\n(SKILL.md), and plugin collections (plugin.json); auto-creates apm.yml; use\n--allow-insecure for http:// packages)",
16
16
"list": "List available scripts in the current project",
17
17
"marketplace": "Manage marketplaces for discovery and governance",
18
18
"mcp": "Discover, inspect, and install MCP servers",
@@ -26,15 +26,15 @@ var commandFullDesc = map[string]string{
26
26
"runtime": "Manage AI runtimes (experimental)",
27
27
"search": "Search plugins in a marketplace (QUERY@MARKETPLACE)",
28
28
"self-update": "Update the APM CLI binary itself to the latest version",
29
-
"targets": "Show resolved targets for the current project.",
29
+
"targets": "Show resolved targets for the current project. If APM detects a target you\ndon't intend (e.g. CLAUDE.md is documentation, not a Claude Code config),\npin your targets explicitly in apm.yml.",
30
30
"uninstall": "Remove APM packages, their integrated files, and apm.yml entries",
31
-
"unpack": "[Deprecated] Extract an APM bundle into the current project.",
31
+
"unpack": "[Deprecated] Extract an APM bundle into the current project. Use 'apm\ninstall <bundle-path>' instead -- this command will be removed in v0.14.",
32
32
"update": "Refresh APM dependencies to the latest matching refs",
33
-
"view": "View package metadata or list remote versions.",
33
+
"view": "View package metadata or list remote versions.\n\nWithout FIELD, displays local metadata for an installed package. With FIELD,\nqueries specific data (may contact the remote).\n\nFields:\n versions List available remote tags and branches\n\nExamples:\n apm view org/repo # Local metadata\n apm view org/repo versions # Remote tags/branches\n apm view org/repo -g # From user scope",
34
34
}
35
35
36
36
// commandOptions provides key options for each command, matching Python CLI help.
37
-
// Only the most commonly referenced options are listed; --help is added by printCmdHelp.
37
+
// Each entry includes the --help line with correct alignment (matching Click's output).
38
38
varcommandOptions=map[string][]string{
39
39
"compile": {
40
40
" -o, --output TEXT Output file path (for single-file mode)",
@@ -46,6 +46,7 @@ var commandOptions = map[string][]string{
46
46
" --clean Remove orphaned AGENTS.md files",
47
47
" --all Compile for all canonical targets",
48
48
" -v, --verbose Show detailed source attribution",
49
+
" --help Show this message and exit.",
49
50
},
50
51
"install": {
51
52
" --runtime TEXT Target specific runtime only",
@@ -66,34 +67,100 @@ var commandOptions = map[string][]string{
66
67
" --refresh Bypass the persistent cache and re-fetch all dependencies",
0 commit comments