Sha256: d549daa64c353a7559fa2a7e93b5758d7d1f4d6d5acaac5fdef1e761a5b87325
Contents?: true
Size: 660 Bytes
Versions: 18
Compression:
Stored size: 660 Bytes
Contents
#!/bin/bash _pantograph_complete() { COMPREPLY=() local word="${COMP_WORDS[COMP_CWORD]}" local completions="" # look for Pantfile either in this directory or pantograph/ then grab the lane names if [[ -e "Pantfile" ]]; then file="Pantfile" elif [[ -e "pantograph/Pantfile" ]]; then file="pantograph/Pantfile" elif [[ -e ".pantograph/Pantfile" ]]; then file=".pantograph/Pantfile" 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_pantograph" COMPREPLY=( $(compgen -W "$completions" -- "$word") ) }
Version data entries
18 entries across 18 versions & 1 rubygems