Skip to content

add json and yaml output format#234

Merged
nimakaviani merged 1 commit intocnoe-io:mainfrom
nabuskey:output-format
Apr 29, 2024
Merged

add json and yaml output format#234
nimakaviani merged 1 commit intocnoe-io:mainfrom
nabuskey:output-format

Conversation

@nabuskey
Copy link
Copy Markdown
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 <manabu.mccloskey@gmail.com>
@nimakaviani nimakaviani self-requested a review April 29, 2024 23:45
Copy link
Copy Markdown
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
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