mirror of
https://github.com/apple/container.git
synced 2026-09-28 01:46:25 -04:00
Enhance container system status command output (#1769)
- Fixes #815. - Relocates the API server info received from the health check XPC to a `server` property. - Fixes the server `version` property in the health check result to contain only the version; previously it included text that was already in sibling properties. - Adds properties for host, client, paths, and resources. - Adds these properties to the output of `container system status`, in a table or as JSON (`--format json`). Daemon-sourced fields populate only when the API server responds, so the command degrades gracefully to a "server not running" view when the daemon is stopped. System configuration values are not repeated here — `container system property ls` already reports them. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -44,7 +44,7 @@ public actor HealthCheckHarness {
|
||||
if let logRoot {
|
||||
reply.set(key: .logRoot, value: logRoot.string)
|
||||
}
|
||||
reply.set(key: .apiServerVersion, value: ReleaseVersion.singleLine(appName: "container-apiserver"))
|
||||
reply.set(key: .apiServerVersion, value: ReleaseVersion.version())
|
||||
reply.set(key: .apiServerCommit, value: get_git_commit().map { String(cString: $0) } ?? "unspecified")
|
||||
// Extra optional fields for richer client display
|
||||
reply.set(key: .apiServerBuild, value: ReleaseVersion.buildType())
|
||||
|
||||
Reference in New Issue
Block a user