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

Feature request: emit license-report as JSON #90

Open
wenkokke opened this issue Dec 12, 2022 · 1 comment
Open

Feature request: emit license-report as JSON #90

wenkokke opened this issue Dec 12, 2022 · 1 comment

Comments

@wenkokke
Copy link

For further processing, e.g., fetching all the license texts to build a license.txt file, it would be great if cabal-plan could emit the license-report as JSON.

Would it be possible to add a --json flag to the license-report subcommand?

I assume the implementation effort would be minimal, since we can presumable just convert the data structure used by the license report to json, rather than printing it as Markdown?

@wenkokke
Copy link
Author

wenkokke commented Dec 12, 2022

This functionality is partly covered by the --licensedir flag, but:

  • it doesn't provide other information, such as the license name;
  • it doesn't provide an easy way to download licenses that are not included in the license directory,
    such as those packages that are bundled with GHC.

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

1 participant