Added view option completions, and enabled function

This commit is contained in:
Price Hiller 2022-01-01 04:16:16 -06:00
parent 5aa40bc1e2
commit b77e87baaf
2 changed files with 5 additions and 1 deletions

View File

@ -5,7 +5,7 @@ _7D2D_manage_completions() {
return return
fi 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 complete -F _7D2D_manage_completions 7D2D-Manage

View File

@ -799,6 +799,10 @@ main() {
backup "$@" backup "$@"
break break
;; ;;
view | v)
shift view "$@"
break
;;
-?*) -?*)
printf "Unknown option: %s\n" "$1" >&2 printf "Unknown option: %s\n" "$1" >&2
usage usage