Sha256: 51cad16d794c6f9fb5c1afa2ec2829da141a2a3753a6699cff621d5857d33521

Contents?: true

Size: 686 Bytes

Versions: 82

Compression:

Stored size: 686 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}')
  completions="$completions update_fastlane"

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

complete -F _fastlane_complete fastlane

Version data entries

82 entries across 82 versions & 1 rubygems

Version Path
fastlane-2.67.0 fastlane/lib/assets/completions/completion.bash
fastlane-2.67.0.beta.20171128010003 fastlane/lib/assets/completions/completion.bash
fastlane-2.67.0.beta.20171127010003 fastlane/lib/assets/completions/completion.bash
fastlane-2.67.0.beta.20171126010003 fastlane/lib/assets/completions/completion.bash
fastlane-2.67.0.beta.20171125010004 fastlane/lib/assets/completions/completion.bash
fastlane-2.67.0.beta.20171124010004 fastlane/lib/assets/completions/completion.bash
fastlane-2.67.0.beta.20171123010003 fastlane/lib/assets/completions/completion.bash
fastlane-2.67.0.beta.20171122010004 fastlane/lib/assets/completions/completion.bash
fastlane-2.66.2 fastlane/lib/assets/completions/completion.bash
fastlane-2.66.1 fastlane/lib/assets/completions/completion.bash
fastlane-2.67.0.beta.20171121010003 fastlane/lib/assets/completions/completion.bash
fastlane-2.66.0 fastlane/lib/assets/completions/completion.bash
fastlane-2.65.0 fastlane/lib/assets/completions/completion.bash
fastlane-2.65.0.beta.20171120010003 fastlane/lib/assets/completions/completion.bash
fastlane-2.65.0.beta.20171119010004 fastlane/lib/assets/completions/completion.bash
fastlane-2.65.0.beta.20171118010003 fastlane/lib/assets/completions/completion.bash
fastlane-2.65.0.beta.20171117010003 fastlane/lib/assets/completions/completion.bash
fastlane-2.65.0.beta.20171116010004 fastlane/lib/assets/completions/completion.bash
fastlane-2.65.0.beta.20171115010004 fastlane/lib/assets/completions/completion.bash
fastlane-2.65.0.beta.20171114010003 fastlane/lib/assets/completions/completion.bash