Add Fastlane plugin
This commit is contained in:
parent
f5537241a4
commit
4b11abe1a4
20
plugins/fastlane/fastlane.plugin.zsh
Normal file
20
plugins/fastlane/fastlane.plugin.zsh
Normal file
@ -0,0 +1,20 @@
|
||||
_fastlane_complete() {
|
||||
local word completions
|
||||
word="$1"
|
||||
|
||||
# look for Fastfile either in this directory or fastlane/ then grab the lane names
|
||||
if [[ -e "Fastfile" ]] then
|
||||
file="Fastfile"
|
||||
elif [[ -e "fastlane/Fastfile" ]] then
|
||||
file="fastlane/Fastfile"
|
||||
elif [[ -e ".fastlane/Fastfile" ]] then
|
||||
file=".fastlane/Fastfile"
|
||||
fi
|
||||
|
||||
# parse 'beta' out of 'lane :beta do', etc
|
||||
completions=`cat $file | grep "^\s*lane \:" | awk -F ':' '{print $2}' | awk -F ' ' '{print $1}'`
|
||||
|
||||
reply=( "${(ps:\n:)completions}" )
|
||||
}
|
||||
|
||||
compctl -K _fastlane_complete fastlane
|
Loading…
Reference in New Issue
Block a user