Debian Codegraph @

bash-completion/fallocate

raw
1 _fallocate_module()
2 {
3 local cur prev OPTS
4 COMPREPLY=()
5 cur="${COMP_WORDS[COMP_CWORD]}"
6 prev="${COMP_WORDS[COMP_CWORD-1]}"
7 case $prev in
8 '-o'|'--offset'|'-l'|'--length')
9 COMPREPLY=( $(compgen -W "bytes" -- $cur) )
10 return 0
11 ;;
12 '-h'|'--help'|'-V'|'--version')
13 return 0
14 ;;
15 esac
16 case $cur in
17 -*)
18 OPTS="
19 --collapse-range
20 --dig-holes
21 --report-holes
22 --insert-range
23 --length
24 --keep-size
25 --offset
26 --punch-hole
27 --zero-range
28 --write-zeroes
29 --posix
30 --verbose
31 --help
32 --version
33 "
34 COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
35 return 0
36 ;;
37 esac
38 local IFS=$'\n'
39 compopt -o filenames
40 COMPREPLY=( $(compgen -f -- $cur) )
41 return 0
42 }
43 complete -F _fallocate_module fallocate