purescript / psc-package

A package manager for PureScript based on package sets
https://psc-package.readthedocs.io
Other
229 stars 45 forks source link

View package set from CLI #101

Open hrb90 opened 6 years ago

hrb90 commented 6 years ago

It'd be nice if you could see what package set you're using from the CLI, instead of having to tab into your editor or cat your psc-package.json. I figure either we could have a set command that just prints the set, or we could put it at the top of available.

justinwoo commented 6 years ago

Sounds worse than using jq .set psc-package.json though

hrb90 commented 6 years ago

Sure, that works too, but it assumes that (1) you have jq installed and know how to use it, and (2) you already know that the package set is defined in the top-level "set" field of psc-package.json, which isn't obvious to new users.

What are the downsides to printing the package set in available?

justinwoo commented 5 years ago

I generally don't want to break anyone who wants to use existing output for sourcing information. This should end up being a separate command if someone really wants it, but otherwise we should close the issue.