mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-09-28 13:13:37 +08:00
- Update Sinon (breaking change does not affect us) - Update Mocha - Update Karma R=jacktfranklin@chromium.org Bug: none Change-Id: Ieb50ba55ce7a9e01e32ee553a6741e6323fcaaab Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3158223 Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org> Commit-Queue: Jack Franklin <jacktfranklin@chromium.org> Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org> Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
51 lines
1.5 KiB
Bash
51 lines
1.5 KiB
Bash
###-begin-karma-completion-###
|
|
#
|
|
# karma command completion script
|
|
# This is stolen from npm. Thanks @isaac!
|
|
#
|
|
# Installation: karma completion >> ~/.bashrc (or ~/.zshrc)
|
|
# Or, maybe: karma completion > /usr/local/etc/bash_completion.d/karma
|
|
#
|
|
|
|
if type complete &>/dev/null; then
|
|
__karma_completion () {
|
|
local si="$IFS"
|
|
IFS=$'\n' COMPREPLY=($(COMP_CWORD="$COMP_CWORD" \
|
|
COMP_LINE="$COMP_LINE" \
|
|
COMP_POINT="$COMP_POINT" \
|
|
karma completion -- "${COMP_WORDS[@]}" \
|
|
2>/dev/null)) || return $?
|
|
IFS="$si"
|
|
}
|
|
complete -F __karma_completion karma
|
|
elif type compdef &>/dev/null; then
|
|
__karma_completion() {
|
|
si=$IFS
|
|
compadd -- $(COMP_CWORD=$((CURRENT-1)) \
|
|
COMP_LINE=$BUFFER \
|
|
COMP_POINT=0 \
|
|
karma completion -- "${words[@]}" \
|
|
2>/dev/null)
|
|
IFS=$si
|
|
}
|
|
compdef __karma_completion karma
|
|
elif type compctl &>/dev/null; then
|
|
__karma_completion () {
|
|
local cword line point words si
|
|
read -Ac words
|
|
read -cn cword
|
|
let cword-=1
|
|
read -l line
|
|
read -ln point
|
|
si="$IFS"
|
|
IFS=$'\n' reply=($(COMP_CWORD="$cword" \
|
|
COMP_LINE="$line" \
|
|
COMP_POINT="$point" \
|
|
karma completion -- "${words[@]}" \
|
|
2>/dev/null)) || return $?
|
|
IFS="$si"
|
|
}
|
|
compctl -K __karma_completion karma
|
|
fi
|
|
###-end-karma-completion-###
|