fix completion for r3 create
parent
2c1cba7f77
commit
70f94540aa
|
@ -16,6 +16,10 @@ r3_completions() {
|
|||
COMPREPLY=($(compgen -W "$(grep "r3 create" "${R3_V2_FOLDER}.r3_history" | sed "s/^.*r3 /r3 /" | sed "s/\s+/ /g" | sort --unique | cut -d' ' -f3 | sed 's/\([A-Z]\)/-\1/g' | awk '{print tolower($0)}' | sed "s/^/r3/" | sed "s/$/.js/" | perl -pe "s/\n/ /")" "${COMP_WORDS[2]}"))
|
||||
fi
|
||||
|
||||
if [[ "${#COMP_WORDS[@]}" == "3" && ( "${COMP_WORDS[1]}" == "create" ) ]]; then
|
||||
COMPREPLY=($(compgen -W "Component Entity System Runtime" "${COMP_WORDS[2]}")) && compopt -o nospace
|
||||
fi
|
||||
|
||||
if [ "${#COMP_WORDS[@]}" == "4" ]; then
|
||||
COMPREPLY=($(compgen -W "extends normal system static system_base r3_base" "${COMP_WORDS[3]}"))
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue