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-1.96.0 lib/assets/completions/completion.bash
fastlane-1.95.0 lib/assets/completions/completion.bash
fastlane-1.94.1 lib/assets/completions/completion.bash
fastlane-1.94.0 lib/assets/completions/completion.bash
fastlane-1.93.1 lib/assets/completions/completion.bash
fastlane-1.93.0 lib/assets/completions/completion.bash
fastlane-1.92.0 lib/assets/completions/completion.bash
fastlane-1.92.0.beta2 lib/assets/completions/completion.bash
fastlane-1.92.0.beta1 lib/assets/completions/completion.bash
fastlane-1.91.0 lib/assets/completions/completion.bash
fastlane-1.90.0 lib/assets/completions/completion.bash
fastlane-1.89.0 lib/assets/completions/completion.bash
fastlane-1.88.0 lib/assets/completions/completion.bash
fastlane-1.87.1 lib/assets/completions/completion.bash
fastlane-1.87.0 lib/assets/completions/completion.bash
fastlane-1.86.1 lib/assets/completions/completion.bash
fastlane-1.86.0 lib/assets/completions/completion.bash
fastlane-1.85.0 lib/assets/completions/completion.bash
fastlane-1.84.0 lib/assets/completions/completion.bash
fastlane-1.83.0 lib/assets/completions/completion.bash