<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hello there! I spent the last few days playing around with pass,
so I forked it [1] and changed the way it handles extensions,
because I wanted to allow extensions to override internal
commands. I.E. if someone wants to modify the way <i>generate</i>
works, there's no need to touch pass's core but simply create an
extension named <i>generate.bash </i>and that's all<i>.</i></p>
<p>Here's the rough changes list:<br>
</p>
<ul>
<li>Modified the way commands are interpreted in the script:
replaced the switch case selection to a more flexible eval'd
one.</li>
<li>Changed how extensions are handled: now extensions are loaded
first, before interpreting the command as an internal command.
This allows extensions to override internal commands. A helper
function is provided so that an overridden function can still be
called from the extension.</li>
<li>Issuing help command now shows help from the extensions if
they implement a function named help_{extension name}().
Otherwise, it will list enabled extensions as commands.</li>
</ul>
This keeps backwards compatibility at 100%, existing extensions are
too 100% compatible. So for the final user these patches doesn't
have any effect at all.<br>
<br>
Patches and signed hashes are attached.<br>
<br>
Also, I tested these and all tests passed (attached as <i>tests-result.txt</i>).
Note that tests must be fixed first (see <i>[PATCH] Fixes for tests</i>
[2]).<br>
<br>
A sample <i>pass --help</i> output with a couple of extensions I
made is attached (<i>help-example.txt</i>).<br>
<br>
Attachment list:<br>
0001-Changed-function-switch-based-on-parameters-by-a-mor.patch<br>
0002-Added-helper-override_function-to-enable-extensions-.patch<br>
0003-Modified-cmd_usage-to-show-extensions-usage-help-too.patch<br>
0004-Minor-bugfixes-in-cmd_usage-when-showing-extensions-.patch<br>
0005-Fixed-multiname-functions-parameters-were-not-being-.patch<br>
0006-Small-bugfix-in-usage-command.-Also-changed-spaces-f.patch<br>
SHA512SUMS<br>
SHA512SUMS.sig<br>
help-example.txt<br>
tests-result.txt<br>
<br>
Cheers!<br>
<br>
[1]: <a href="https://github.com/HacKanCuBa/passh">https://github.com/HacKanCuBa/passh</a><br>
[2]: <a
href="https://lists.zx2c4.com/pipermail/password-store/2017-February/002727.html">https://lists.zx2c4.com/pipermail/password-store/2017-February/002727.html</a><br>
<pre class="moz-signature" cols="72">--
HacKan || Iván
GPG: 0x35710D312FDE468B</pre>
</body>
</html>