Skip to content

doctl auth list: respect json output flag#1547

Merged
bentranter merged 1 commit intodigitalocean:mainfrom
loosla:write-auth-list-as-json-with-flag
Jul 11, 2024
Merged

doctl auth list: respect json output flag#1547
bentranter merged 1 commit intodigitalocean:mainfrom
loosla:write-auth-list-as-json-with-flag

Conversation

@loosla
Copy link
Contributor

@loosla loosla commented Jul 11, 2024

addresses #1543

Updates the doctl auth list command to respect the -o json flag.

Example output:

$ go run cmd/doctl/main.go auth list -o json

[
  {
    "name": "default",
    "current": true
  },
  {
    "name": "personal",
    "current": false
  },
  {
    "name": "work",
    "current": false
  }
]

Copy link
Member

@bentranter bentranter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Thanks so much for the contribution Anna!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants