Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add json and yaml output format #234

Merged
merged 1 commit into from
Apr 29, 2024
Merged

Conversation

nabuskey
Copy link
Collaborator

@nabuskey nabuskey commented Apr 29, 2024

This adds json and yaml output options to the get command. I need this functionality for e2e tests I am trying to add because I need to be able to parse command outputs programmatically.

./idpbuilder get secrets -o json
[
  {
    "name": "argocd-initial-admin-secret",
    "namespace": "argocd",
    "data": {
      "password": "abc",
      "username": "admin"
    }
  },
  {
    "name": "gitea-credential",
    "namespace": "gitea",
    "data": {
      "password": "abc",
      "username": "giteaAdmin"
    }
  }
]

Signed-off-by: Manabu McCloskey <[email protected]>
@nimakaviani nimakaviani self-requested a review April 29, 2024 23:45
Copy link
Contributor

@nimakaviani nimakaviani left a comment

Choose a reason for hiding this comment

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

Neat!

@nimakaviani nimakaviani merged commit 95f756c into cnoe-io:main Apr 29, 2024
2 checks passed
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