Added view option completions, and enabled function
This commit is contained in:
parent
5aa40bc1e2
commit
b77e87baaf
@ -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
|
||||
|
@ -799,6 +799,10 @@ main() {
|
||||
backup "$@"
|
||||
break
|
||||
;;
|
||||
view | v)
|
||||
shift view "$@"
|
||||
break
|
||||
;;
|
||||
-?*)
|
||||
printf "Unknown option: %s\n" "$1" >&2
|
||||
usage
|
||||
|
Loading…
Reference in New Issue
Block a user