mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
25 lines
547 B
Text
25 lines
547 B
Text
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||
|
# created by Tobias Powalowski <tpowa@archlinux.org>
|
||
|
_testsuite()
|
||
|
{
|
||
|
local cur prev OPTS
|
||
|
COMPREPLY=()
|
||
|
cur="${COMP_WORDS[COMP_CWORD]}"
|
||
|
prev="${COMP_WORDS[COMP_CWORD-1]}"
|
||
|
case $prev in
|
||
|
run)
|
||
|
return 0
|
||
|
;;
|
||
|
esac
|
||
|
case $cur in
|
||
|
*)
|
||
|
OPTS="run"
|
||
|
COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
|
||
|
return 0
|
||
|
;;
|
||
|
esac
|
||
|
compopt -o bashdefault -o default
|
||
|
return 0
|
||
|
}
|
||
|
complete -F _testsuite testsuite
|