mirror of
https://github.com/garrytan/gstack.git
synced 2026-05-02 11:45:20 +02:00
fix: restore rich descriptions lost in auto-generation
- Snapshot flags: add back value hints (-d <N>, -s <sel>, -o <path>) - Snapshot flags: restore parenthetical context (@e refs, @c refs, etc.) - Commands: is → includes valid states enum - Commands: console → notes --errors filter behavior - Commands: press → lists common keys (Enter, Tab, Escape) - Commands: cookie-import-browser → describes picker UI - Commands: dialog-accept → specifies alert/confirm/prompt - Tips: restore → arrow (was downgraded to ->)
This commit is contained in:
@@ -63,10 +63,8 @@ function generateSnapshotFlags(): string {
|
||||
];
|
||||
|
||||
for (const flag of SNAPSHOT_FLAGS) {
|
||||
const flagStr = flag.takesValue
|
||||
? `${flag.short.padEnd(10)}${flag.description}`
|
||||
: `${flag.short.padEnd(10)}${flag.description}`;
|
||||
lines.push(flagStr);
|
||||
const label = flag.valueHint ? `${flag.short} ${flag.valueHint}` : flag.short;
|
||||
lines.push(`${label.padEnd(10)}${flag.description}`);
|
||||
}
|
||||
|
||||
lines.push('```');
|
||||
|
||||
Reference in New Issue
Block a user