From b77e87baaf758e47df5db57d29afd459cb5f0cd2 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sat, 1 Jan 2022 04:16:16 -0600 Subject: [PATCH] Added view option completions, and enabled function --- Scripts/7D2D-Manage-Completion.bash | 2 +- Scripts/7D2D-Manage.bash | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Scripts/7D2D-Manage-Completion.bash b/Scripts/7D2D-Manage-Completion.bash index 37d1ce0..ba40411 100644 --- a/Scripts/7D2D-Manage-Completion.bash +++ b/Scripts/7D2D-Manage-Completion.bash @@ -5,7 +5,7 @@ _7D2D_manage_completions() { return fi - COMPREPLY=($(compgen -W "backup install kill list start update" "${COMP_WORDS[1]}")) + COMPREPLY=($(compgen -W "backup install kill list start update view" "${COMP_WORDS[1]}")) } complete -F _7D2D_manage_completions 7D2D-Manage diff --git a/Scripts/7D2D-Manage.bash b/Scripts/7D2D-Manage.bash index d409427..8194809 100644 --- a/Scripts/7D2D-Manage.bash +++ b/Scripts/7D2D-Manage.bash @@ -799,6 +799,10 @@ main() { backup "$@" break ;; + view | v) + shift view "$@" + break + ;; -?*) printf "Unknown option: %s\n" "$1" >&2 usage