Sha256: f19cc65cf88825f1faa36b206189a69a3efc0b4e6943733b701c1d24f43e5176

Contents?: true

Size: 309 Bytes

Versions: 8

Compression:

Stored size: 309 Bytes

Contents

_<%= project_name %>() {
  COMPREPLY=()
  local word="${COMP_WORDS[COMP_CWORD]}"
  local words=("${COMP_WORDS[@]}")
  unset words[0]
  local completion=$(<%= project_name %> completion ${words[@]})
  COMPREPLY=( $(compgen -W "$completion" -- "$word") )
}

complete -F _<%= project_name %> <%= project_name %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
cli-template-4.0.2 lib/templates/default/lib/%underscored_name%/completer/script.sh.tt
cli-template-4.0.1 lib/templates/default/lib/%underscored_name%/completer/script.sh.tt
cli-template-4.0.0 lib/templates/default/lib/%underscored_name%/completer/script.sh.tt
cli-template-3.5.1 lib/templates/default/lib/%underscored_name%/completer/script.sh.tt
cli-template-3.5.0 lib/templates/default/lib/%underscored_name%/completer/script.sh.tt
cli-template-3.4.0 lib/templates/default/lib/%underscored_name%/completer/script.sh.tt
cli-template-3.3.0 lib/templates/default/lib/%underscored_name%/completer/script.sh.tt
cli-template-3.2.0 lib/templates/default/lib/%underscored_name%/completer/script.sh.tt