]> gitweb.fluxo.info Git - kvmx.git/commitdiff
Usage: format available actions is columns
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 1 Apr 2017 17:09:50 +0000 (14:09 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 1 Apr 2017 17:09:50 +0000 (14:09 -0300)
kvmx

diff --git a/kvmx b/kvmx
index 1b7c4cf7c44653559734cdfb0edd967a4bdfb544..0472bf17e188b28eb9b164540a54b7a46cbb4e8c 100755 (executable)
--- a/kvmx
+++ b/kvmx
@@ -361,7 +361,7 @@ function kvmx_usage {
   echo ""
   echo "available actions:"
   echo ""
-  grep "^function kvmx_" $0 | cut -d ' ' -f 2 | sed -e 's/kvmx_/\t/' | sort
+  grep "^function kvmx_" $0 | cut -d ' ' -f 2 | sed -e 's/kvmx_//' | sort | xargs -L 6 | column -t -c 6 | sed -e 's/^/\t/'
   echo ""
   echo "examples:"
   echo ""