diff --git a/README.md b/README.md index 084af91..9d8e52a 100644 --- a/README.md +++ b/README.md @@ -87,3 +87,9 @@ Update to the latest release ```bash $ wt update ``` + +Show the CLI version + +```bash +$ wt version +``` diff --git a/wt b/wt index 5d5edcc..92377f7 100755 --- a/wt +++ b/wt @@ -4,7 +4,7 @@ set -e # Switch between git worktrees with ease. args=("$@") -VERSION="0.0.7" +VERSION="0.0.8" TMP_PATH=$(mktemp) BINARY_PATH=$(which wt) JQ_URL="https://stedolan.github.io/jq/download" @@ -22,6 +22,7 @@ help_message() { echo -e "\twt : search for worktree names and change to that directory." echo -e "\twt list: list out all the git worktrees." echo -e "\twt update: update to the latest release of worktree switcher." + echo -e "\twt version: show the CLI version." echo -e "\twt help: shows this help message." } @@ -86,6 +87,9 @@ update) help) help_message ;; +version) + echo Version: $VERSION + ;; -) goto_main_worktree ;;