mirror of
https://github.com/albfan/miraclecast.git
synced 2025-03-09 23:38:56 +00:00
parent
117ed2071b
commit
30b8c2d223
1 changed files with 27 additions and 7 deletions
|
@ -6,11 +6,13 @@ function _miracle-wifid() {
|
|||
|
||||
case "$prev" in
|
||||
--log-level)
|
||||
COMPREPLY=($(compgen -W '1 2 3 4 5 6 7 8' -- "$cur"))
|
||||
COMPREPLY=($(compgen -W 'fatal alert critical error warning notice info debug trace 1 2 3 4 5 6 7 8' -- "$cur"))
|
||||
return 0
|
||||
;;
|
||||
--wpa-loglevel)
|
||||
COMPREPLY=($(compgen -W '1 2 3 4 5 6 7' -- "$cur"))
|
||||
return 0
|
||||
;;
|
||||
COMPREPLY=($(compgen -W 'fatal alert critical error warning notice info debug trace 1 2 3 4 5 6 7 8' -- "$cur"))
|
||||
return 0
|
||||
;;
|
||||
esac
|
||||
|
||||
COMPREPLY=($(compgen -W "$(_parse_help miracle-wifid)" -- "$cur"))
|
||||
|
@ -26,12 +28,30 @@ function _miracle-sinkctl() {
|
|||
|
||||
case "$prev" in
|
||||
--log-level)
|
||||
COMPREPLY=($(compgen -W '1 2 3 4 5 6 7 8' -- "$cur"))
|
||||
return 0
|
||||
;;
|
||||
COMPREPLY=($(compgen -W 'fatal alert critical error warning notice info debug trace 1 2 3 4 5 6 7 8' -- "$cur"))
|
||||
return 0
|
||||
;;
|
||||
esac
|
||||
|
||||
COMPREPLY=($(compgen -W "$(_parse_help miracle-sinkctl)" -- "$cur"))
|
||||
}
|
||||
|
||||
complete -F _miracle-sinkctl miracle-sinkctl
|
||||
|
||||
function _miracle-wifictl() {
|
||||
local cur prev
|
||||
|
||||
_get_comp_words_by_ref cur
|
||||
prev=${COMP_WORDS[COMP_CWORD-1]}
|
||||
|
||||
case "$prev" in
|
||||
--log-level)
|
||||
COMPREPLY=($(compgen -W 'fatal alert critical error warning notice info debug trace 1 2 3 4 5 6 7 8' -- "$cur"))
|
||||
return 0
|
||||
;;
|
||||
esac
|
||||
|
||||
COMPREPLY=($(compgen -W "$(_parse_help miracle-wifictl)" -- "$cur"))
|
||||
}
|
||||
|
||||
complete -F _miracle-wifictl miracle-wifictl
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue