@aaronshaf/ger 2.0.9 → 2.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/cli/index.ts +37 -0
package/package.json
CHANGED
package/src/cli/index.ts
CHANGED
|
@@ -48,6 +48,43 @@ const program = new Command()
|
|
|
48
48
|
|
|
49
49
|
program.name('ger').description('LLM-centric Gerrit CLI tool').version(getVersion())
|
|
50
50
|
|
|
51
|
+
program.addHelpText(
|
|
52
|
+
'after',
|
|
53
|
+
`
|
|
54
|
+
CHANGE-ID FORMATS
|
|
55
|
+
Accepts numeric change numbers (12345) or full Change-IDs (I1234abc...).
|
|
56
|
+
Many commands auto-detect from HEAD commit's Change-Id footer when the
|
|
57
|
+
argument is omitted.
|
|
58
|
+
|
|
59
|
+
OUTPUT FORMATS
|
|
60
|
+
--json Structured JSON output for programmatic consumption
|
|
61
|
+
--xml XML with CDATA-wrapped content, optimized for LLM consumption
|
|
62
|
+
(default) Plain text for human reading
|
|
63
|
+
Most commands support both --json and --xml.
|
|
64
|
+
|
|
65
|
+
PIPING / STDIN
|
|
66
|
+
comment Reads message from stdin if no -m flag is provided
|
|
67
|
+
comment --batch Reads a JSON array from stdin for bulk commenting
|
|
68
|
+
|
|
69
|
+
AUTO-DETECTION
|
|
70
|
+
These commands auto-detect the change from HEAD's Change-Id footer when
|
|
71
|
+
the change-id argument is omitted:
|
|
72
|
+
show, build-status, topic, rebase, extract-url, diff, comments, vote
|
|
73
|
+
|
|
74
|
+
COMMON LLM WORKFLOWS
|
|
75
|
+
Review a change: ger show <id> → ger diff <id> → ger comments <id>
|
|
76
|
+
Post a review: ger comment <id> -m "..." → ger vote <id> <label> <score>
|
|
77
|
+
Manage changes: ger push, ger checkout <id>, ger abandon <id>, ger submit <id>
|
|
78
|
+
Check CI: ger build-status <id> --exit-status
|
|
79
|
+
|
|
80
|
+
EXIT CODES
|
|
81
|
+
build-status --exit-status returns non-zero on build failure (useful for scripting).
|
|
82
|
+
|
|
83
|
+
SUBCOMMAND HELP
|
|
84
|
+
Run ger <command> --help for detailed usage and examples.
|
|
85
|
+
`,
|
|
86
|
+
)
|
|
87
|
+
|
|
51
88
|
registerCommands(program)
|
|
52
89
|
|
|
53
90
|
program.parse(process.argv)
|