mirror of
https://github.com/tw93/Mole.git
synced 2026-02-15 16:55:06 +00:00
chore: auto format code
This commit is contained in:
@@ -88,7 +88,7 @@ paginated_multi_select() {
|
|||||||
local cursor_pos=0
|
local cursor_pos=0
|
||||||
local top_index=0
|
local top_index=0
|
||||||
local filter_query=""
|
local filter_query=""
|
||||||
local filter_mode="false" # filter mode toggle
|
local filter_mode="false" # filter mode toggle
|
||||||
local sort_mode="${MOLE_MENU_SORT_MODE:-${MOLE_MENU_SORT_DEFAULT:-date}}" # date|name|size
|
local sort_mode="${MOLE_MENU_SORT_MODE:-${MOLE_MENU_SORT_DEFAULT:-date}}" # date|name|size
|
||||||
local sort_reverse="${MOLE_MENU_SORT_REVERSE:-false}"
|
local sort_reverse="${MOLE_MENU_SORT_REVERSE:-false}"
|
||||||
# Live query vs applied query
|
# Live query vs applied query
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ if command -v bats > /dev/null 2>&1 && [ -d "tests" ]; then
|
|||||||
if [[ "$formatter" == "tap" ]]; then
|
if [[ "$formatter" == "tap" ]]; then
|
||||||
if $use_color; then
|
if $use_color; then
|
||||||
esc=$'\033'
|
esc=$'\033'
|
||||||
if bats --formatter tap "$@" | \
|
if bats --formatter tap "$@" |
|
||||||
sed -e "s/^ok /${esc}[32mok ${esc}[0m /" \
|
sed -e "s/^ok /${esc}[32mok ${esc}[0m /" \
|
||||||
-e "s/^not ok /${esc}[31mnot ok ${esc}[0m /"; then
|
-e "s/^not ok /${esc}[31mnot ok ${esc}[0m /"; then
|
||||||
report_unit_result 0
|
report_unit_result 0
|
||||||
@@ -92,7 +92,7 @@ if command -v bats > /dev/null 2>&1 && [ -d "tests" ]; then
|
|||||||
else
|
else
|
||||||
if $use_color; then
|
if $use_color; then
|
||||||
esc=$'\033'
|
esc=$'\033'
|
||||||
if bats --tap "$@" | \
|
if bats --tap "$@" |
|
||||||
sed -e "s/^ok /${esc}[32mok ${esc}[0m /" \
|
sed -e "s/^ok /${esc}[32mok ${esc}[0m /" \
|
||||||
-e "s/^not ok /${esc}[31mnot ok ${esc}[0m /"; then
|
-e "s/^not ok /${esc}[31mnot ok ${esc}[0m /"; then
|
||||||
report_unit_result 0
|
report_unit_result 0
|
||||||
|
|||||||
Reference in New Issue
Block a user