Skip to content

add yadm "edit" command #366

Open
Open
@xenoterracide

Description

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.

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions