summaryrefslogtreecommitdiff
path: root/lib/keyringer/functions
diff options
context:
space:
mode:
Diffstat (limited to 'lib/keyringer/functions')
-rw-r--r--lib/keyringer/functions12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/keyringer/functions b/lib/keyringer/functions
index 1d29157..3fa7170 100644
--- a/lib/keyringer/functions
+++ b/lib/keyringer/functions
@@ -342,6 +342,18 @@ function keyringer_action_usage {
fi
}
+# Return available actions
+function keyringer_show_actions {
+ ls $ACTIONS
+}
+
+# Usage
+function keyringer_usage {
+ printf "Usage: %s <keyring> <action> [arguments]\n" "$BASENAME"
+ printf "Available commands: \n"
+ keyringer_show_actions | sed -e 's/^/\t/'
+}
+
# Check recipients
function keyringer_check_recipients {
if [ "$KEYRINGER_CHECK_RECIPIENTS" == "false" ]; then