chore(search): correct typo in optional dependency bat
This commit is contained in:
parent
7a8f0eb47e
commit
343a2b5d4c
|
@ -91,7 +91,7 @@ pkgctl_search() {
|
||||||
local line_numbers=1
|
local line_numbers=1
|
||||||
|
|
||||||
# variables
|
# variables
|
||||||
local bats_style="header,grid"
|
local bat_style="header,grid"
|
||||||
local default_filter="-path:keys/pgp/*.asc"
|
local default_filter="-path:keys/pgp/*.asc"
|
||||||
local graphql_lookup_batch=200
|
local graphql_lookup_batch=200
|
||||||
local output result query entries from until length
|
local output result query entries from until length
|
||||||
|
@ -156,14 +156,14 @@ pkgctl_search() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# check for optional dependencies
|
# check for optional dependencies
|
||||||
if [[ ${output_format} == pretty ]] && ! command -v bats &>/dev/null; then
|
if [[ ${output_format} == pretty ]] && ! command -v bat &>/dev/null; then
|
||||||
warning "Failed to find optional dependency 'bats': falling back to plain output"
|
warning "Failed to find optional dependency 'bat': falling back to plain output"
|
||||||
output_format=plain
|
output_format=plain
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# populate line numbers option
|
# populate line numbers option
|
||||||
if (( line_numbers )); then
|
if (( line_numbers )); then
|
||||||
bats_style="numbers,${bats_style}"
|
bat_style="numbers,${bat_style}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# call the gitlab search API
|
# call the gitlab search API
|
||||||
|
@ -282,7 +282,7 @@ pkgctl_search() {
|
||||||
--line-range "${startline}:" \
|
--line-range "${startline}:" \
|
||||||
--paging=never \
|
--paging=never \
|
||||||
--force-colorization \
|
--force-colorization \
|
||||||
--style "${bats_style}" \
|
--style "${bat_style}" \
|
||||||
--map-syntax "PKGBUILD:Bourne Again Shell (bash)" \
|
--map-syntax "PKGBUILD:Bourne Again Shell (bash)" \
|
||||||
--map-syntax ".SRCINFO:INI" \
|
--map-syntax ".SRCINFO:INI" \
|
||||||
--map-syntax "*install:Bourne Again Shell (bash)" \
|
--map-syntax "*install:Bourne Again Shell (bash)" \
|
||||||
|
|
Loading…
Reference in New Issue