5 cur="${COMP_WORDS[COMP_CWORD]}"
6 prev="${COMP_WORDS[COMP_CWORD-1]}"
9 COMPREPLY=( $(compgen -W "bytes" -- $cur) )
13 COMPREPLY=( $(compgen -W "label" -- $cur) )
17 COMPREPLY=( $(compgen -W "1" -- $cur) )
21 COMPREPLY=( $(compgen -W "$(uuidgen -r)" -- $cur) )
24 '-h'|'--help'|'-V'|'--version')
30 OPTS="--check --force --pagesize --label --swapversion --uuid --version --help"
31 COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
35 compopt -o bashdefault -o default
36 COMPREPLY=( $(compgen -W "$(lsblk -pnro name)" -- $cur) )
39 complete -F _mkswap_module mkswap