A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/inaka/elvis/raw/master/priv/bash_completion/elvis below:

#!/bin/bash # shellcheck disable=SC2207 # Prefer mapfile or read -a to split command output (or quote to avoid splitting) # Bash completion for Elvis, the Erlang style reviewer _elvis() { local cur prev COMPREPLY=() cur="${COMP_WORDS[COMP_CWORD]}" prev="${COMP_WORDS[COMP_CWORD - 1]}" if [[ ${prev} == "--config" ]] || [[ ${prev} == "rock" ]]; then local files_and_dirs=($(compgen -f -- "${cur}")) for item in "${files_and_dirs[@]}"; do if [[ -d "${item}" ]]; then compopt -o nospace COMPREPLY+=("${item}/") else COMPREPLY+=("${item}") fi done return 0 elif [[ ${prev} == "--code_path" ]]; then compopt -o nospace COMPREPLY=($(compgen -d -- "${cur}")) elif [[ ${prev} == "install" ]]; then COMPREPLY=($(compgen -W "git-hook" -- "${cur}")) elif [[ ${prev} == "--output_format" ]]; then COMPREPLY=($(compgen -W "plain colors parsable" -- "${cur}")) elif [[ ${prev} == "--parallel" ]]; then COMPREPLY=($(compgen -W "auto" -- "${cur}")) elif [[ ${prev} == "git-branch" ]]; then COMPREPLY=($(compgen -W "$(git branch --format='%(refname)' | sed 's|refs/heads/||' || true)" -- "${cur}")) else COMPREPLY=($(compgen -W '--help --config --commands git-branch git-hook install rock --output_format --parallel --quiet --verbose --version --code_path --keep_rocking' -- "${cur}")) fi return 0 } complete -F _elvis elvis

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4