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

Option to print the compiler versions in a shell-friendly format ? #51

Open
mmhat opened this issue Aug 14, 2024 · 1 comment
Open

Option to print the compiler versions in a shell-friendly format ? #51

mmhat opened this issue Aug 14, 2024 · 1 comment

Comments

@mmhat
Copy link
Contributor

mmhat commented Aug 14, 2024

Currently get-tested outputs JSON:

$ get-tested my-project.cabal
["9.8.2", "9.10.1"]

It was nice if there was an option to print that in a more shell-friendly format, i.e. one version per line, unquoted:

$ get-tested --format=shell my-project.cabal
9.8.2
9.10.1

Then one could do something like for v in $(get-tested --shell); do cabal test all --with-compiler "ghc-${v}"; done...

@Kleidukos
Copy link
Owner

Yes good idea, this would also lay the foundations for a --format=nix that was asked in #14.

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