feat: add JSON output format to many CLI commands (#6082)

This commit is contained in:
Dean Sheather
2023-02-08 17:09:38 +00:00
committed by GitHub
parent 5655ec6862
commit d60ec3e4bf
36 changed files with 851 additions and 285 deletions
+33
View File
@@ -0,0 +1,33 @@
[
{
"id": "[first user ID]",
"username": "testuser",
"email": "testuser@coder.com",
"created_at": "[timestamp]",
"last_seen_at": "[timestamp]",
"status": "active",
"organization_ids": [
"[first org ID]"
],
"roles": [
{
"name": "owner",
"display_name": "Owner"
}
],
"avatar_url": ""
},
{
"id": "[second user ID]",
"username": "testuser2",
"email": "testuser2@coder.com",
"created_at": "[timestamp]",
"last_seen_at": "[timestamp]",
"status": "active",
"organization_ids": [
"[first org ID]"
],
"roles": [],
"avatar_url": ""
}
]