Skip to content

feat(status): show cgh version in cgh status#15

Merged
joy-software merged 1 commit into
developfrom
feature/status-show-version
May 31, 2026
Merged

feat(status): show cgh version in cgh status#15
joy-software merged 1 commit into
developfrom
feature/status-show-version

Conversation

@joy-software
Copy link
Copy Markdown
Contributor

Summary

`cgh status` now shows the cgh version as the first row, and the JSON payload (`--json`) gains a top-level `version` field.

```
codegraph status

Version 0.4.0
Owner not running
Scan no scan recorded
Files 3
...
```

Why

Two practical uses:

  • Sanity-check that the cgh binary on a teammate's machine matches what we expect.
  • "Is my installed cgh in sync with develop" debugging without a separate `cgh --version` call.

Test plan

  • `uvx ruff check .` clean
  • cgh status on a scratch repo shows the new row
  • `cgh status --json` carries `{"version": "0.4.0", ...}`
  • CI green on this PR

Adds a Version row at the top of the cgh status table and a
top-level version field in the --json payload. Useful for sanity-
checking that the cgh binary on a teammate's machine matches what
we expect, and to support "is the installed cgh in sync with
develop" debugging without a second --version call.
@joy-software joy-software merged commit 6dcd62d into develop May 31, 2026
1 check passed
@joy-software joy-software deleted the feature/status-show-version branch May 31, 2026 16:29
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.

1 participant