TheLocehiliosan / yadm

Yet Another Dotfiles Manager
https://yadm.io/
GNU General Public License v3.0
4.94k stars 178 forks source link

Verify yadm alt filters #360

Open Lite5h4dow opened 2 years ago

Lite5h4dow commented 2 years ago

Is your feature request related to a problem? Please describe.

Setting up Alts for different systems and environments can get annoying when you don't know what yadm thinks it's installing Alts to. E.g on chroots like termux

Describe the solution you'd like

Would be nice if there was a way of printing the alt variables that yadm detects like yadm verify os or yadm verify distro or something along those lines so I can see what yadm sees and take the guesswork out of it since wsl has proved that what you think is the os is unreliable and turmux has proved the same problem too. It also returns Linux but appears to be something different.

Describe alternatives you've considered

I've attempted to run the same calls that yadm claims to run when creating alt symlinks (eg cat /etc/os-release since lsb_release -si is never installed.) However I'm not getting the symlinks created when using the returned results in my alt filter (eg bootstrap.d##o.linux,d.archarm)

Additional context

Would just be nice to verify what yadm is filtering by without trial and error.

TheLocehiliosan commented 2 years ago

Yes, I like this idea a lot!

Lite5h4dow commented 2 years ago

@TheLocehiliosan I made a pr. this is my first contribution here so let me know if I've done something wrong.

github-actions[bot] commented 2 years ago

This issue has been labeled as stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

Lite5h4dow commented 2 years ago

@TheLocehiliosan updated the pr