]> gitweb.fluxo.info Git - keyringer.git/commitdiff
Development: adding a subcommand
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 28 Sep 2013 20:31:56 +0000 (17:31 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 28 Sep 2013 20:31:56 +0000 (17:31 -0300)
development.mdwn
lib/keyringer/completions/zsh/_keyringer

index 94c8a24b2e9eca0e72266d703f7033655dab89ee..1313e9a43c1e23695f3cedbca93be80b48c2450c 100644 (file)
@@ -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
 ----------
 
index 3a1034722d48e22848a0219a27748a83ea3e0884..47a83fccbbd701c11046d6dd43502509735a4998 100644 (file)
@@ -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        \