2023-01-18 11:36:57 -06:00
|
|
|
#/usr/bin/env bash
|
|
|
|
|
|
|
|
set +e
|
|
|
|
|
|
|
|
_completions() {
|
|
|
|
SUGGESTIONS=()
|
|
|
|
|
|
|
|
if [[ "$COMP_CWORD" == 1 ]]; then
|
|
|
|
SUGGESTIONS=('install' 'remove' 'update' 'show' 'search' 'enter' 'create-container' 'remove-container' \
|
2023-01-19 03:01:12 -06:00
|
|
|
'install-de' 'list-containers' 'start-containers' 'sync' 'help' 'version' 'export' 'unexport',
|
|
|
|
'--container-name=' '--distro=' '--noconfirm' '--version')
|
2023-01-18 11:36:57 -06:00
|
|
|
fi
|
|
|
|
|
2023-01-19 06:28:04 -06:00
|
|
|
COMPREPLY=($(compgen -W "${SUGGESTIONS[*]}" -- "${COMP_WORDS[$COMP_CWORD]}"))
|
2023-01-18 11:36:57 -06:00
|
|
|
}
|
|
|
|
|
2023-01-19 03:01:12 -06:00
|
|
|
complete -F _completions -- blend
|