Skip to content

fix(cli): report real docksight status from compose - #106

Merged
rodriguecyber merged 1 commit into
Open-Source-Kigali:developfrom
AshSgDe29071999:fix/98-real-status
Aug 15, 2026
Merged

fix(cli): report real docksight status from compose#106
rodriguecyber merged 1 commit into
Open-Source-Kigali:developfrom
AshSgDe29071999:fix/98-real-status

Conversation

@AshSgDe29071999

Copy link
Copy Markdown
Contributor

Summary

docksight status was a stub that always printed all active. It now reports install state and per-service compose status.

Changes

  • Load install state from state.json; exit non-zero if not installed
  • Print CLI and platform versions from the install record
  • List each compose service via compose.Runner.Status + Service.Describe()
  • ui.Success for ready services, ui.Warning for others
  • Exit non-zero when any service is not ready
  • gofmt the file

Test plan

  • cd apps/cli && go build ./... && go vet ./... && go test ./... (relevant packages)
  • On an installed host: docksight status matches docker compose ps
  • With stack stopped, command exits non-zero and does not say "all active"
  • With no install, clear not-installed error

Fixes #98

Wire docksight status to install state and compose.Runner.Status so a
stopped stack is not reported as "all active". Exit non-zero when not
installed or any service is not ready.

Fixes Open-Source-Kigali#98
@rodriguecyber
rodriguecyber merged commit c5265ef into Open-Source-Kigali:develop Aug 15, 2026
1 check passed
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.

docksight status always reports "all active", whatever the stack is doing

2 participants