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,9 +6,11 @@ function _miracle-wifid() {
|
||||||
|
|
||||||
case "$prev" in
|
case "$prev" in
|
||||||
--log-level)
|
--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)
|
--wpa-loglevel)
|
||||||
COMPREPLY=($(compgen -W '1 2 3 4 5 6 7' -- "$cur"))
|
COMPREPLY=($(compgen -W 'fatal alert critical error warning notice info debug trace 1 2 3 4 5 6 7 8' -- "$cur"))
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
@ -26,7 +28,7 @@ function _miracle-sinkctl() {
|
||||||
|
|
||||||
case "$prev" in
|
case "$prev" in
|
||||||
--log-level)
|
--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
|
return 0
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
@ -35,3 +37,21 @@ function _miracle-sinkctl() {
|
||||||
}
|
}
|
||||||
|
|
||||||
complete -F _miracle-sinkctl miracle-sinkctl
|
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