Scripts that install or verify grut need to parse the current version without scraping human text or update notices. Add grut version --json to print structured version data and skip update messaging in JSON mode.
Acceptance criteria:
grut version --json prints valid JSON with a version field.
- Plain
grut version keeps the current text output.
- Tests cover both command structure and JSON output.
Scripts that install or verify grut need to parse the current version without scraping human text or update notices. Add
grut version --jsonto print structured version data and skip update messaging in JSON mode.Acceptance criteria:
grut version --jsonprints valid JSON with aversionfield.grut versionkeeps the current text output.