biox / pa

a simple password manager. encryption via age, written in portable posix shell
https://passwordass.org
Other
505 stars 21 forks source link

Automatic git commits? #14

Closed ivanbrennan closed 2 months ago

ivanbrennan commented 1 year ago

Thanks for this wonderful utility. Are there plans to implement automatic git commit when a password is added/updated/removed?

The blogpost mentioned:

  • pa add <name-of-password> shall make a new password, and randomly generate it
    • if the name is already taken, exit 1
    • automatically git commits & pushes on exit 0

I'm not so sure about automatic pushes, but automatic commits (like we see in passage and pass) would be great.

biox commented 1 year ago

i've been using an alias to do this, but i've felt like this should be baked in for awhile. when i get some free time i'm still interested in an implementation. i'm not quite sure what i want it to look like tho - as unobtrusive as possible ideally.

biox commented 1 year ago

i probably will never have the time/energy to do this, but i am open to PRs adding this behavior, as long as the implementation only depends on git & doesn't increase the complexity of pa very much.