Complete docs

This commit is contained in:
Manuele Sarfatti 2025-05-11 16:11:30 +02:00
parent f53afe80c9
commit 76e2ad7db7
7 changed files with 718 additions and 29 deletions

11
dist/beddu.sh vendored
View file

@ -2,10 +2,11 @@
# shellcheck disable=all
#
# beddu.sh - A lightweight bash framework for interactive scripts and pretty output
# https://github.com/mjsarfatti/beddu
# Version: v0.0.8-dirty
#
# Version: v0.0.8
# Generated on: Sun May 11 14:19:38 CEST 2025
# Copyright © 2025 Manuele Sarfatti
# Licensed under the MIT license
# See https://github.com/mjsarfatti/beddu
readonly _q='?'
readonly _a=''
@ -125,7 +126,7 @@ repen() {
pen "$@"
}
trap spop EXIT INT TERM
trap "spop; show_cursor" EXIT INT TERM
_spinner_pid=""
_frame_duration="${_spinner_frame_duration:-0.1}"
spin() {
@ -220,7 +221,7 @@ choose() {
local count=${#options[@]}
prompt=$(
pen -n blue "${_q:-?} "
pen -n "${2}"
pen -n "${2} "
pen gray "[↑↓]"
)
hide_cursor