From a866714f394aaeede9ac84cacde098caf944102a Mon Sep 17 00:00:00 2001 From: hank-pilot Date: Thu, 9 Jul 2026 05:10:32 +0000 Subject: [PATCH] PILOT-65: fix pilotctl --json version to emit JSON instead of plaintext The global --json flag was being ignored by the version command, which unconditionally wrote fmt.Println(version) to stdout. Fix: use output(version) which respects the jsonOutput flag and emits the standard {"status":"ok","data":"v1.12.4"} envelope when --json is set. Found by PILOT-65 Phase 1 functional test runner (44/45 passing). --- cmd/pilotctl/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/pilotctl/main.go b/cmd/pilotctl/main.go index 0a29b394..2b355562 100644 --- a/cmd/pilotctl/main.go +++ b/cmd/pilotctl/main.go @@ -1633,7 +1633,7 @@ dispatch: goto dispatch case "version": - fmt.Println(version) + output(version) return case "quickstart":