nixin72 / shan

A declarative wrapper around your favourite system-wide package manager
MIT License
8 stars 0 forks source link

[FEAT] - An easy way to import packages to begin using shan #2

Open nixin72 opened 2 years ago

nixin72 commented 2 years ago

Is your feature request related to a problem? Please describe. For people who want to nuke their system or get a new computer, etc, but aren't using shan yet, it'd be nice if there was a way to quickly start using it. If you could import a list of all the top-level installed packages from various package managers, import them into shan so that you can get a list to begin with if you haven't been using shan since the start.

Describe the solution you'd like A way for shan to get a list of all top-level installed packages from various package managers, and generate a new shan.edn based off that list. Something kinda like

$ shan init
Select the package managers you'd like to import from
- [ ] yay
- [ ] npm
- [ ] pip

Which packages would you like to install from yay?
...list packages with fzf like fuzzy searching through installed packages

...repeat for npm and pip and whatever other package managers.

Describe alternatives you've considered Manually going through your packages and finding what you'd like to keep is certainly doable, but a bit of a pain in the ass, and always takes up time when installing a new system. It would be nice if you didn't have to just remember what all to install.