mirror of
https://github.com/tonydamage/nux-env.git
synced 2025-12-11 13:24:28 +01:00
nux.repl: Improved autocompletion feature
Added: - autocompletion automaticly proposes tasks - autocompletion for debug, trace, help tasks - extension points for custom task specific autocompleters.
This commit is contained in:
parent
0888955756
commit
4481ca2c56
3 changed files with 108 additions and 0 deletions
|
|
@ -76,6 +76,7 @@ function nux.repl.completion() {
|
|||
complete_command=$(complete -p | grep " ${program_name}$")
|
||||
|
||||
COMPREPLY=()
|
||||
|
||||
COMPREPLY=($($compgen_command "$completion_line"))
|
||||
|
||||
# get commmon prefix of available completions
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue