Sha256: 31bbc172fcf2f7aff6426700db8af2770d9e1068adb514dc7842c11851eec1e3
Contents?: true
Size: 641 Bytes
Versions: 303
Compression:
Stored size: 641 Bytes
Contents
#!/bin/bash _fastlane_complete() { COMPREPLY=() local word="${COMP_WORDS[COMP_CWORD]}" local completions="" # 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=$(grep "^\s*lane \:" $file | awk -F ':' '{print $2}' | awk -F ' ' '{print $1}') COMPREPLY=( $(compgen -W "$completions" -- "$word") ) } complete -F _fastlane_complete fastlane
Version data entries
303 entries across 303 versions & 1 rubygems