[PATCHES] improve extensions support

2017-03-22 Thread HacKan
Hello! Sorry for the incorrect submission format, here it is in a correct and polished manner. Let me know of yout thoughts. Cheers! ___ Password-Store mailing list Password-Store@lists.zx2c4.com

[PATCH] Improve extensions support

2017-03-22 Thread HacKan
- Change command selection switch based on parameters by a more flexible design using eval. - Read user extensions first when executing a command, so even internal commmands can be overridden. - Add helper `override_function()` to enable extensions to override, but use, internal functions.

Re: [PATCH] Add support for showing help from extensions

2017-03-22 Thread Sylvia van Os
While I don't really know enough bash to properly review the code, I love the idea. The pass module for Pext actually uses --help to get a list of all commands that can be ran, so this should allow the Pext module to immediately offer basic support for some extensions that don't need special

[PATCH] Add support for showing help from extensions

2017-03-22 Thread HacKan
When help command is issued, extensions installed are listed and, if they support it, help from them is displayed; if they don't, a message stating that there's no help available for them is displayed. --- src/password-store.sh | 44 +++- 1 file changed, 43

[PATCH] Add support for showing help from extensions

2017-03-22 Thread HacKan
I'm starting a new thread, but for previous reference, see [1]. This patch aims to improve pass's connection with extensions by showing help from them when pass's help command is issued. It's backwards compatible. Extension makers could add a help function named like `help_extensionname()`,