From 373f54eebcf2fe4be6f2792061c900e9ba9e3313 Mon Sep 17 00:00:00 2001 From: "Christian G. Warden" Date: Mon, 18 Nov 2024 14:49:04 -0600 Subject: [PATCH] Add Org Id to `force active` Output --- command/active.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/command/active.go b/command/active.go index 06c69ff6..af8a3e82 100644 --- a/command/active.go +++ b/command/active.go @@ -50,9 +50,9 @@ func printCurrentAccount(cmd *cobra.Command) { if sessionId { fmt.Println(creds.AccessToken) } else if tojson { - fmt.Printf(fmt.Sprintf("{ \"login\": \"%s\", \"instanceUrl\": \"%s\", \"namespace\":\"%s\" }", creds.SessionName(), creds.InstanceUrl, creds.UserInfo.OrgNamespace)) + fmt.Printf(fmt.Sprintf(`{ "login": "%s", "instanceUrl": "%s", "namespace": "%s", "orgId": "%s" }`, creds.SessionName(), creds.InstanceUrl, creds.UserInfo.OrgNamespace, creds.UserInfo.OrgId)) } else { - fmt.Println(fmt.Sprintf("%s - %s - ns:%s", creds.SessionName(), creds.InstanceUrl, creds.UserInfo.OrgNamespace)) + fmt.Println(fmt.Sprintf("%s - %s - Org: %s - ns:%s", creds.SessionName(), creds.InstanceUrl, creds.UserInfo.OrgId, creds.UserInfo.OrgNamespace)) } }