diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/hydra/misc | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/lib/hydra/misc b/lib/hydra/misc index 88ffec1..4695d5f 100644 --- a/lib/hydra/misc +++ b/lib/hydra/misc @@ -70,12 +70,7 @@ function hydra_exec { # Set needed environment variables and do basic checks. function hydra_set_env { - if [ -z "$1" ]; then - echo "Error: missing arguments for hydra_set_env" - exit 1 - fi - - ACTION="$1" + export ACTION="$1" } # Get a command argument @@ -100,6 +95,17 @@ function hydra_action_usage { fi } +# Action dispatcher function hydra_dispatch { hydra_exec $ACTION $* } + +# Hydra usage +function hydra_usage_hydra { + echo "Usage: hydra [hydra] <command> [arguments]" +} + +# Hydra ctl usage +function hydra_usage_hydractl { + echo "Usage: hydractl <command> [arguments]" +} |