Add option '--exec <command>' for running shell command

Runs shell command with I/O redirected to device.
This commit is contained in:
Martin Lund 2024-05-07 14:38:19 +02:00
parent 545d473220
commit e75e19eb00
9 changed files with 89 additions and 10 deletions

View file

@ -45,6 +45,7 @@ _tio()
--script \
--script-file \
--script-run \
--exec \
-v --version \
-h --help"
@ -179,6 +180,10 @@ _tio()
COMPREPLY=( $(compgen -W "once always never" -- ${cur}) )
return 0
;;
--exec)
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
;;
-v | --version)
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0