psc-package icon indicating copy to clipboard operation
psc-package copied to clipboard

View package set from CLI

Open hrb90 opened this issue 6 years ago • 3 comments

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.

hrb90 avatar Apr 15 '18 20:04 hrb90

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

justinwoo avatar Apr 15 '18 21:04 justinwoo

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?

hrb90 avatar Apr 15 '18 22:04 hrb90

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.

justinwoo avatar Feb 02 '19 11:02 justinwoo