From 8da5023df4b4e3ec55bf52b4377920a8ece941e2 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 11 Jul 2013 16:44:20 -0300 Subject: Better usage handling --- share/keyringer/commands | 10 ++++++++++ share/keyringer/usage | 12 ++++++++++++ 2 files changed, 22 insertions(+) create mode 100755 share/keyringer/commands create mode 100755 share/keyringer/usage (limited to 'share') diff --git a/share/keyringer/commands b/share/keyringer/commands new file mode 100755 index 0000000..139725a --- /dev/null +++ b/share/keyringer/commands @@ -0,0 +1,10 @@ +#!/bin/bash +# +# Show available commands +# + +# Load functions +LIB="`dirname $0`/../../lib/keyringer/functions" +source "$LIB" || exit 1 + +keyringer_show_actions diff --git a/share/keyringer/usage b/share/keyringer/usage new file mode 100755 index 0000000..54cbea6 --- /dev/null +++ b/share/keyringer/usage @@ -0,0 +1,12 @@ +#!/bin/bash +# +# Show available commands +# + +# Load functions +LIB="`dirname $0`/../../lib/keyringer/functions" +source "$LIB" || exit 1 + +printf "Usage: %s [arguments]\n" "$BASENAME" +printf "Available commands: \n" +ls $ACTIONS | sed -e 's/^/\t/' -- cgit v1.2.3