Skip to content

Commit de8920e

Browse files
authored
feat: add org fields to the instance show command (#4832)
## Summary Expose `org_domain` and `org_id` in the output of `cozy-stack instances show`. The admin API already returns these fields from the instance document, but the CLI uses the client-side `Instance` DTO before printing the JSON. Since that DTO did not include the org fields, they were dropped from the final command output.
2 parents 0199910 + ac51d16 commit de8920e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

client/instances.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ type Instance struct {
3030
Attrs struct {
3131
Domain string `json:"domain"`
3232
DomainAliases []string `json:"domain_aliases,omitempty"`
33+
OrgDomain string `json:"org_domain,omitempty"`
34+
OrgID string `json:"org_id,omitempty"`
3335
OldDomain string `json:"old_domain,omitempty"`
3436
Prefix string `json:"prefix,omitempty"`
3537
Locale string `json:"locale"`

0 commit comments

Comments
 (0)