From 8b2238e80d23ca77eac360e442b2334c543d1d09 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 28 Sep 2013 17:31:56 -0300 Subject: Development: adding a subcommand --- development.mdwn | 8 ++++++++ lib/keyringer/completions/zsh/_keyringer | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/development.mdwn b/development.mdwn index 94c8a24..1313e9a 100644 --- a/development.mdwn +++ b/development.mdwn @@ -94,6 +94,14 @@ Run lintian (or [add it to your pbuilder hooks](http://askubuntu.com/questions/1 lintian --info --display-info --pedantic --color auto \ ../build-area/keyringer_$VERSION*.changes +Adding a subcommand +------------------- + +When adding a new subcommand, ensure: + +* Manpage is updated. +* Shell completions are updated. + References ---------- diff --git a/lib/keyringer/completions/zsh/_keyringer b/lib/keyringer/completions/zsh/_keyringer index 3a10347..47a83fc 100644 --- a/lib/keyringer/completions/zsh/_keyringer +++ b/lib/keyringer/completions/zsh/_keyringer @@ -19,8 +19,8 @@ _keyringer() { fi # Process config - local keyrings="`ls --color=never $config | sed -e 's/config//'`" source $config/config + local keyrings="`ls --color=never $config | sed -e 's/config//'`" local keyring_path="`eval echo '$'$words[2]`" _arguments \ -- cgit v1.2.3