mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Add option '--exec <command>' for running shell command
Runs shell command with I/O redirected to device.
This commit is contained in:
parent
545d473220
commit
e75e19eb00
9 changed files with 89 additions and 10 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue