This repository has been archived on 2026-11-21. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
encapic/completions/encapic.bash
T
unkin-agent d2e9e42e20
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful
feat: add unset-testing to restore a node's pre-testing environment
2026-11-08 17:27:04 +11:00

12 lines
412 B
Bash

# bash completion for encapic
_encapic() {
local cur=${COMP_WORDS[COMP_CWORD]} words=""
case $COMP_CWORD in
1) words="init set-testing unset-testing completion help --help --version" ;;
2) [[ ${COMP_WORDS[1]} == completion ]] && words="bash zsh" ;;
3) [[ ${COMP_WORDS[1]} == completion ]] && words="--install" ;;
esac
mapfile -t COMPREPLY < <(compgen -W "$words" -- "$cur")
}
complete -F _encapic encapic