Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add yadm "edit" command #366

Open
xenoterracide opened this issue Jul 31, 2021 · 2 comments
Open

add yadm "edit" command #366

xenoterracide opened this issue Jul 31, 2021 · 2 comments

Comments

@xenoterracide
Copy link

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

it's annoying to have to type yadm ~/.config/yadm/alt/.config/yadm/bootstrap##...,etc

Describe the solution you'd like

So the other day I noticed that you can do, e.g systemctl edit cups which will edit an override file for cups.service. I realized it would be really cool to do this for yadm. so for example, I could do, on manjaro as root, and it would be equivalent to doing

yadm edit ~/.config/yadm/pkglist.txt
vi ~/.config/yadm/alt/.config/yadm/pkglist.txt\#\#os.Linux,distro.ManjaroLinux,user.root,e.txt
yadm alt # maybe? this is optional to me

I'm of course suggesting that the edit command take the "conditions" into consideration, as well as use EDITOR and VISUAL environment variables, as well as probably its own configs and perhaps a default.

https://www.freedesktop.org/software/systemd/man/systemctl.html#edit%20UNIT%E2%80%A6

you'll note it reloads the daemon, but it doesn't start/stop anything, so not sure about yadm alt

Describe alternatives you've considered

Do what I'm doing now. I suppose I could write a shell function that I put in my zshrc and alias it in the yadm gitconfig.

@github-actions
Copy link

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.

@github-actions
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants