[pass] [PATCH] Allow custom subcommands

Thorsten Wißmann edu at thorsten-wissmann.de
Fri Sep 30 11:33:33 CEST 2016


Hi,

I have a couple of custom pass scripts (e.g. a custom clipboard
wizard[1], or a custom file generation script). It would fit perfectly
to the pass workflow if one could call those directly via pass, e.g.

    pass clipwiz Business/some-silly-business-site.com

which should call

    pass-clipwiz Business/some-silly-business-site.com

if there is an executable pass-clipwiz in the PATH. This does not only
fit the usual pass workflow (first show a file, then paste it using
clipwiz), but one also gets the tab-completion for custom pass scripts
for free.

Other command line utilities like git or hledger[2] provide those custom
subcommands, and I'd love to see it in pass as well. I've implemented
that in the attached git formatted patch, but did not know
whether/where/how to add an description for that in the man page.

Feel free to adjust my little patch as you want.

Thank you very much for pass,
Cheers,
Thorsten


[1] http://thorsten-wissmann.de/p/3e7fa904a600c2505b33eda1d4850492
[2] http://hledger.org/manual.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Allow-custom-subcommands.patch
Type: text/x-diff
Size: 927 bytes
Desc: not available
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20160930/476baea7/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20160930/476baea7/attachment.asc>


More information about the Password-Store mailing list