12 lines
301 B
Bash
12 lines
301 B
Bash
# bash parameter completion for the dotnet CLI
|
|
|
|
_dotnet_bash_complete()
|
|
{
|
|
local word=${COMP_WORDS[COMP_CWORD]}
|
|
|
|
local completions=("$(dotnet complete --position ${COMP_POINT} "${COMP_LINE}")")
|
|
|
|
COMPREPLY=( $(compgen -W "$completions" -- "$word") )
|
|
}
|
|
|
|
complete -f -F _dotnet_bash_complete dotnet
|