|
| 1 | +# bashly completion -*- shell-script -*- |
| 2 | + |
| 3 | +# This bash completions script was generated by |
| 4 | +# completely (https://github.com/dannyben/completely) |
| 5 | +# Modifying it manually is not recommended |
| 6 | + |
| 7 | +_bashly_completions_filter() { |
| 8 | + local words="$1" |
| 9 | + local cur=${COMP_WORDS[COMP_CWORD]} |
| 10 | + local result=() |
| 11 | + |
| 12 | + if [[ "${cur:0:1}" == "-" ]]; then |
| 13 | + echo "$words" |
| 14 | + |
| 15 | + else |
| 16 | + for word in $words; do |
| 17 | + [[ "${word:0:1}" != "-" ]] && result+=("$word") |
| 18 | + done |
| 19 | + |
| 20 | + echo "${result[*]}" |
| 21 | + |
| 22 | + fi |
| 23 | +} |
| 24 | + |
| 25 | +_bashly_completions() { |
| 26 | + local cur=${COMP_WORDS[COMP_CWORD]} |
| 27 | + local compwords=("${COMP_WORDS[@]:1:$COMP_CWORD-1}") |
| 28 | + local compline="${compwords[*]}" |
| 29 | + |
| 30 | + case "$compline" in |
| 31 | + 'generate'*'--env') |
| 32 | + while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_bashly_completions_filter "development production")" -- "$cur" ) |
| 33 | + ;; |
| 34 | + |
| 35 | + 'generate'*'-e') |
| 36 | + while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_bashly_completions_filter "development production")" -- "$cur" ) |
| 37 | + ;; |
| 38 | + |
| 39 | + 'completions'*) |
| 40 | + while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_bashly_completions_filter "--help -h --install -i")" -- "$cur" ) |
| 41 | + ;; |
| 42 | + |
| 43 | + 'validate'*) |
| 44 | + while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_bashly_completions_filter "--help -h --verbose -v")" -- "$cur" ) |
| 45 | + ;; |
| 46 | + |
| 47 | + 'generate'*) |
| 48 | + while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_bashly_completions_filter "--help -h --env --force --quiet --upgrade --watch --wrap -e -f -q -r -u -w")" -- "$cur" ) |
| 49 | + ;; |
| 50 | + |
| 51 | + 'preview'*) |
| 52 | + while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_bashly_completions_filter "--help -h")" -- "$cur" ) |
| 53 | + ;; |
| 54 | + |
| 55 | + 'g'*'--env') |
| 56 | + while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_bashly_completions_filter "development production")" -- "$cur" ) |
| 57 | + ;; |
| 58 | + |
| 59 | + 'shell'*) |
| 60 | + while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_bashly_completions_filter "--help -h")" -- "$cur" ) |
| 61 | + ;; |
| 62 | + |
| 63 | + 'init'*) |
| 64 | + while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_bashly_completions_filter "--help -h --minimal -m")" -- "$cur" ) |
| 65 | + ;; |
| 66 | + |
| 67 | + 'g'*'-e') |
| 68 | + while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_bashly_completions_filter "development production")" -- "$cur" ) |
| 69 | + ;; |
| 70 | + |
| 71 | + 'add'*) |
| 72 | + while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_bashly_completions_filter "--help -h --force --list --source -f -l -s colors completions completions_script completions_yaml config help hooks lib settings strings test validations yaml")" -- "$cur" ) |
| 73 | + ;; |
| 74 | + |
| 75 | + 'doc'*) |
| 76 | + while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_bashly_completions_filter "--help -h --index -i arg arg.allowed arg.default arg.help arg.name arg.repeatable arg.required arg.validate command command.alias command.args command.catch_all command.commands command.completions command.default command.dependencies command.environment_variables command.examples command.expose command.extensible command.filename command.filters command.flags command.footer command.function command.group command.help command.name command.private command.version environment_variable environment_variable.default environment_variable.help environment_variable.name environment_variable.private environment_variable.required flag flag.allowed flag.arg flag.completions flag.conflicts flag.default flag.help flag.long flag.private flag.repeatable flag.required flag.short flag.validate")" -- "$cur" ) |
| 77 | + ;; |
| 78 | + |
| 79 | + 'i'*) |
| 80 | + while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_bashly_completions_filter "--help -h --minimal -m")" -- "$cur" ) |
| 81 | + ;; |
| 82 | + |
| 83 | + 'p'*) |
| 84 | + while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_bashly_completions_filter "--help -h")" -- "$cur" ) |
| 85 | + ;; |
| 86 | + |
| 87 | + 'v'*) |
| 88 | + while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_bashly_completions_filter "--help -h --verbose -v")" -- "$cur" ) |
| 89 | + ;; |
| 90 | + |
| 91 | + 'g'*) |
| 92 | + while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_bashly_completions_filter "--help -h --env --force --quiet --upgrade --watch --wrap -e -f -q -r -u -w")" -- "$cur" ) |
| 93 | + ;; |
| 94 | + |
| 95 | + 'a'*) |
| 96 | + while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_bashly_completions_filter "--help -h --force --list --source -f -l -s colors completions completions_script completions_yaml config help hooks lib settings strings test validations yaml")" -- "$cur" ) |
| 97 | + ;; |
| 98 | + |
| 99 | + 'c'*) |
| 100 | + while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_bashly_completions_filter "--help -h --install -i")" -- "$cur" ) |
| 101 | + ;; |
| 102 | + |
| 103 | + 's'*) |
| 104 | + while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_bashly_completions_filter "--help -h")" -- "$cur" ) |
| 105 | + ;; |
| 106 | + |
| 107 | + *) |
| 108 | + while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(_bashly_completions_filter "--help -h --version -v init preview validate generate add doc completions shell")" -- "$cur" ) |
| 109 | + ;; |
| 110 | + |
| 111 | + esac |
| 112 | +} && |
| 113 | +complete -F _bashly_completions bashly |
| 114 | + |
| 115 | +# ex: filetype=sh |
0 commit comments