Add mute feature

This will make tio go fully silent and not print anything.
This commit is contained in:
Martin Lund 2022-10-22 08:59:34 +02:00
parent 784201ea2e
commit c80f833a06
3 changed files with 23 additions and 0 deletions

View file

@ -35,6 +35,7 @@ _tio()
--rs-485 \
--rs-485-config \
--alert \
--mute \
-v --version \
-h --help"
@ -141,6 +142,10 @@ _tio()
COMPREPLY=( $(compgen -W "none bell blink" -- ${cur}) )
return 0
;;
--mute)
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
;;
-v | --version)
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0