Sha256: 0cf9b7784fe6bc210efe23f41a1379aa8c6380257a8b45ded7ed49c2d74c07f7

Contents?: true

Size: 633 Bytes

Versions: 60

Compression:

Stored size: 633 Bytes

Contents

_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=`cat $file | grep "^\s*lane \:" | awk -F ':' '{print $2}' | awk -F ' ' '{print $1}'`

  COMPREPLY=( $(compgen -W "$completions" -- "$word") )
}

complete -F _fastlane_complete fastlane

Version data entries

60 entries across 60 versions & 1 rubygems

Version Path
fastlane-2.9.0 fastlane/lib/assets/completions/completion.bash
fastlane-2.8.0 fastlane/lib/assets/completions/completion.bash
fastlane-2.7.0 fastlane/lib/assets/completions/completion.bash
fastlane-2.6.0 fastlane/lib/assets/completions/completion.bash
fastlane-2.5.0 fastlane/lib/assets/completions/completion.bash
fastlane-2.4.0 fastlane/lib/assets/completions/completion.bash
fastlane-2.3.1 fastlane/lib/assets/completions/completion.bash
fastlane-2.3.0 fastlane/lib/assets/completions/completion.bash
fastlane-2.2.0 fastlane/lib/assets/completions/completion.bash
fastlane-2.1.3 fastlane/lib/assets/completions/completion.bash
fastlane-2.1.2 fastlane/lib/assets/completions/completion.bash
fastlane-2.1.1 fastlane/lib/assets/completions/completion.bash
fastlane-2.1.0 fastlane/lib/assets/completions/completion.bash
fastlane-2.0.5 fastlane/lib/assets/completions/completion.bash
fastlane-2.0.4 fastlane/lib/assets/completions/completion.bash
fastlane-2.0.3 fastlane/lib/assets/completions/completion.bash
fastlane-2.0.2 fastlane/lib/assets/completions/completion.bash
fastlane-2.0.1 fastlane/lib/assets/completions/completion.bash
fastlane-1.111.0 lib/assets/completions/completion.bash
fastlane-1.110.0 lib/assets/completions/completion.bash