28 lines
765 B
Bash
28 lines
765 B
Bash
# shellcheck shell=bash
|
|
|
|
_command_exists laravel || return
|
|
|
|
function __laravel_completion()
|
|
{
|
|
############ STACK_TRACE_BUILDER #####################
|
|
Function_Name="${FUNCNAME[0]}"
|
|
Function_PATH="${Function_PATH}/${Function_Name}"
|
|
######################################################
|
|
local OPTS=('-h' '--help' '-q' '--quiet' '--ansi' '--no-ansi' '-n' '--no-interaction' '-v' '-vv' '-vvv' '--verbose' 'help' 'list' 'new')
|
|
local _opt_
|
|
COMPREPLY=()
|
|
for _opt_ in "${OPTS[@]}"
|
|
do
|
|
if [[ "${_opt_}" == "${2}"* ]]
|
|
then
|
|
COMPREPLY+=("$_opt_")
|
|
fi
|
|
done
|
|
|
|
############### Stack_TRACE_BUILDER ################
|
|
Function_PATH="$( dirname ${Function_PATH} )"
|
|
####################################################
|
|
}
|
|
|
|
complete -F __laravel_completion laravel
|