]> gitweb.fluxo.info Git - hydra.git/commitdiff
List registered hydras
authorSilvio Rhatto <rhatto@riseup.net>
Wed, 23 May 2018 21:08:01 +0000 (18:08 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Wed, 23 May 2018 21:08:01 +0000 (18:08 -0300)
hydras

diff --git a/hydras b/hydras
index 68108981c042b4dd0828d5c0c450e9c60a87189e..ef5e27c0ee0ea47446521e3eb96bd9e5db64e3b0 100755 (executable)
--- a/hydras
+++ b/hydras
@@ -23,6 +23,14 @@ BASENAME="`basename $0`"
 
 function usage {
   echo "usage: $BASENAME <hydra1> [<hydra2> ... <hydraN>] -- <command>"
+
+  if [ -d "$HOME/.hydra" ]; then
+    echo "registered hydras:"
+    echo ""
+    ls -1 $HOME/.hydra | grep -v '^config$' | sort | xargs -L 6 | column -t -c 6 | sed -e 's/^/\t/'
+    echo ""
+  fi
+
   exit 1
 }