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

Output in JSON or XML format #8

Closed
antononcube opened this issue Nov 15, 2022 · 6 comments
Closed

Output in JSON or XML format #8

antononcube opened this issue Nov 15, 2022 · 6 comments

Comments

@antononcube
Copy link

Please, provide output in JSON and/or XML format of the dependencies.

@coke
Copy link
Owner

coke commented Nov 15, 2022

I am happy to do JSON; I'll skip XML unless there is a specific integration need.

@coke
Copy link
Owner

coke commented Nov 15, 2022

Try using --json on master, added in 1711cb4

I'll look for some feedback before pushing a version to the ecosystem with this

@coke
Copy link
Owner

coke commented Nov 16, 2022

$ raku -I. bin/zef-deps --json .
[
  {
    "deps": [
      {
        "name": "NativeCall",
        "ver": "6.c+"
      },
      {
        "name": "Test",
        "ver": "6.c+"
      }
    ],
    "name": "Zef",
    "ver": "0.14.2+"
  },
  {
    "deps": [
      {
        "name": "NativeCall",
        "ver": "6.c+"
      },
      {
        "name": "Test",
        "ver": "6.c+"
      }
    ],
    "name": "Zef::Client",
    "ver": "0.14.2+"
  },
  {
    "deps": [
      {
        "name": "NativeCall",
        "ver": "6.c+"
      },
      {
        "name": "Test",
        "ver": "6.c+"
      }
    ],
    "name": "Zef::Config",
    "ver": "0.14.2+"
  },
  {
    "deps": [
      {
        "name": "Test"
      }
    ],
    "name": "JSON::Fast"
  }
]

@coke
Copy link
Owner

coke commented Nov 17, 2022

Does this work for you?

@antononcube
Copy link
Author

Yes, it does. Feel free to close this issue.

@coke
Copy link
Owner

coke commented Nov 17, 2022

JSON available in release 0.9.6

@coke coke closed this as completed Nov 17, 2022
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

No branches or pull requests

2 participants