completion/bash-it: rename _bash-it-comp()

...to `_bash-it()`.

The norm is for the completion function for, e.g., `teh_cmd`. to be named with the same name and a prepended underscore, i.e. `_teh_cmd`. This alsö reduces namespace confusion, which will be relevant in a future patch.
This commit is contained in:
John D Pell
2022-01-09 21:30:24 -08:00
committed by John D Pell
parent 2f4ed49a71
commit 5f9a3f143f
2 changed files with 10 additions and 10 deletions

View File

@@ -9,8 +9,8 @@ function local_setup {
setup_test_fixture
}
@test "completion bash-it: ensure that the _bash-it-comp function is available" {
type -a _bash-it-comp &> /dev/null
@test "completion bash-it: ensure that the _bash-it function is available" {
type -a _bash-it &> /dev/null
assert_success
}
@@ -38,7 +38,7 @@ function __check_completion () {
COMP_CWORD=$(( ${#COMP_WORDS[@]} - 1 ))
# Run the Bash-it completion function
_bash-it-comp
_bash-it
# Return the completion output
echo "${COMPREPLY[@]}"