willeccles / cpm

🌵 A wrapper for package managers to make them consistent for those of us who are lazy.
MIT License
69 stars 13 forks source link

Use the resolve() function for more package managers #52

Open willeccles opened 3 years ago

willeccles commented 3 years ago

At the moment, only xbps uses this, but presumably this would be useful for any other PM with a from command.

The function: https://github.com/willeccles/cpm/blob/68ff9eb624d6597bcb0f2a7f6eb6ebe826dfa742/cpm#L151-L156

The usage: https://github.com/willeccles/cpm/blob/68ff9eb624d6597bcb0f2a7f6eb6ebe826dfa742/cpm#L316

This is adjacent to #51, which should be an addition to the resolve() function.

eepykate commented 3 years ago

No good solution to use this and support multiple arguments, this is only needed on xbps, and it would just be a downgrade to force single arguments elsewhere.