From 0b18d3cd64301e5be9c44b9e233fb83127c51d7f Mon Sep 17 00:00:00 2001 From: sanmiguel Date: Thu, 16 Feb 2017 19:54:05 +0100 Subject: Add 'kerl path' subcommand Re #185 - [x] add `path` subcommad --- kerl | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/kerl b/kerl index 98cefb2..f6c9e88 100755 --- a/kerl +++ b/kerl @@ -1229,6 +1229,11 @@ list_has() return 1 } +path_usage() +{ + echo "usage: $0 path []" +} + list_usage() { echo "usage: $0 list " @@ -1549,6 +1554,16 @@ case "$1" in ;; esac ;; + path) + # Usage: + # kerl path + # # Print currently active installation path, else non-zero exit + # kerl path + # Print path to installation with name , else non-zero exit + if [ -z "$2" ]; then + get_active_path + fi + ;; delete) if [ $# -ne 3 ]; then delete_usage -- cgit v1.2.3