Sha256: 84f45148f1ddd96974ee83576767e19df1292e01aa70378a391c2549aba7a2f7

Contents?: true

Size: 625 Bytes

Versions: 75

Compression:

Stored size: 625 Bytes

Contents

#!/bin/zsh

_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}'`
  completions="$completions update_fastlane"

  reply=( "${(ps:\n:)completions}" )
}

compctl -K _fastlane_complete fastlane

Version data entries

75 entries across 75 versions & 1 rubygems

Version Path
fastlane-2.67.0.beta.20171122010004 fastlane/lib/assets/completions/completion.zsh
fastlane-2.66.2 fastlane/lib/assets/completions/completion.zsh
fastlane-2.66.1 fastlane/lib/assets/completions/completion.zsh
fastlane-2.67.0.beta.20171121010003 fastlane/lib/assets/completions/completion.zsh
fastlane-2.66.0 fastlane/lib/assets/completions/completion.zsh
fastlane-2.65.0 fastlane/lib/assets/completions/completion.zsh
fastlane-2.65.0.beta.20171120010003 fastlane/lib/assets/completions/completion.zsh
fastlane-2.65.0.beta.20171119010004 fastlane/lib/assets/completions/completion.zsh
fastlane-2.65.0.beta.20171118010003 fastlane/lib/assets/completions/completion.zsh
fastlane-2.65.0.beta.20171117010003 fastlane/lib/assets/completions/completion.zsh
fastlane-2.65.0.beta.20171116010004 fastlane/lib/assets/completions/completion.zsh
fastlane-2.65.0.beta.20171115010004 fastlane/lib/assets/completions/completion.zsh
fastlane-2.65.0.beta.20171114010003 fastlane/lib/assets/completions/completion.zsh
fastlane-2.64.1 fastlane/lib/assets/completions/completion.zsh
fastlane-2.65.0.beta.20171113010004 fastlane/lib/assets/completions/completion.zsh
fastlane-2.65.0.beta.20171112010003 fastlane/lib/assets/completions/completion.zsh
fastlane-2.65.0.beta.20171111010004 fastlane/lib/assets/completions/completion.zsh
fastlane-2.65.0.beta.20171110010003 fastlane/lib/assets/completions/completion.zsh
fastlane-2.65.0.beta.20171109010003 fastlane/lib/assets/completions/completion.zsh
fastlane-2.65.0.beta.20171108010003 fastlane/lib/assets/completions/completion.zsh