formatted composer completion and used helper function

pull/1782/head
Gurkirat Singh 2021-01-10 19:21:40 +05:30
parent 43ca459080
commit dd09dc5a58
No known key found for this signature in database
GPG Key ID: CFD64E1DCB3DA835
1 changed files with 123 additions and 120 deletions

View File

@ -1,7 +1,9 @@
#!/usr/bin/env bash #!/usr/bin/env bash
_composer() if _command_exists composer
{ then
function _composer()
{
local cur script coms opts com local cur script coms opts com
COMPREPLY=() COMPREPLY=()
_get_comp_words_by_ref -n : cur words _get_comp_words_by_ref -n : cur words
@ -128,6 +130,7 @@ _composer()
return 0 return 0
fi fi
} }
complete -o default -F _composer composer complete -o default -F _composer composer
fi