Skip to content

Commit

Permalink
Merge branch 'active-org'
Browse files Browse the repository at this point in the history
Closes #715
  • Loading branch information
cwarden committed Nov 18, 2024
2 parents d133dc5 + 373f54e commit 0a29dfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions command/active.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
}

Expand Down

0 comments on commit 0a29dfb

Please sign in to comment.