lib/completely/templates/template.erb
References a public code-forge URLShell command redirects output to file
SHA-256ffeeb2600996748e4d008fff0807ea5aa722559f9246ed8e69795da90b92dd07
MaleculeH₂(CmF)
Evidence
1# <%= "#{command} completion".ljust 56 %> -*- 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<%= function_name %>_filter() {
8 local words="$1"
9 local cur= …
9:15… 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 "${ …
30:10… 'COMPLETELY_DEBUG']
31 if [[ -n "$COMPLETELY_DEBUG" ]]; then
32 echo "compline: '$compline'" > 'completely-debug.txt'
33 echo "cur: '$cur'" >> 'completely-debug.txt'
34 fi
⋯5 lines