1
1
Fork 0
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:
Tony Tkáčik 2017-06-21 15:09:08 +02:00
parent 0888955756
commit 4481ca2c56
3 changed files with 108 additions and 0 deletions

View file

@ -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