Adding additional info utilities#104
Conversation
|
Hi @joshmeads I'm actually running out of time, but I will try to take a look at it this weekend. |
|
Hi @joshmeads, First of all, I sincerely apologize for the long delay in responding to this PR. I haven't had much free time lately to dedicate to the project, but I'm finally back at it. I want to let you know that I've planned a major release, v3.0.0, where I'll be implementing the functionality you proposed. However, I’ve decided to take a slightly different architectural approach: instead of using global flags like This new command will provide the same diagnostic information and will include a I'll be closing this PR once the new version is merged, but I really appreciate your contribution and for bringing this need to my attention. It was the catalyst for this new feature! Thanks for your patience and for being part of the community. |
Hey, this PR just adds some extra info methods that I needed personally for some CI pipelines. I've separated the data fetching logic from the rendering logic to avoid repeat work.
Hope it helps!
swpm --info --jsonwill return the info spec in JSON formatIf you pass a value to info it'll pick that value back.
The final brokenSelection example will run
exit(1)No value renders the same CLI output as previous.
> swpm --info using: npm origin: 📌 pinned volta: ⚡ detected Versions: swpm: 2.6.0 Node: 20.9.0 npm: 10.2.1