mirror of
https://github.com/mjsarfatti/beddu.git
synced 2025-06-27 01:18:01 +02:00
Properly source modules
This commit is contained in:
parent
cdbc191d7b
commit
cb53800a20
15 changed files with 114 additions and 397 deletions
|
@ -1,10 +1,15 @@
|
|||
#!/usr/bin/env bash
|
||||
# shellcheck disable=SC1091
|
||||
# ask.sh - Get free text input from the user
|
||||
|
||||
# @depends on:
|
||||
# - pen.sh
|
||||
# - _symbols.sh
|
||||
# - cursor.sh
|
||||
[[ $BEDDU_ASK_LOADED ]] && return
|
||||
readonly BEDDU_ASK_LOADED=true
|
||||
|
||||
SCRIPT_DIR="$(dirname -- "${BASH_SOURCE[0]}")"
|
||||
source "$SCRIPT_DIR/../00.utils/_symbols.sh"
|
||||
source "$SCRIPT_DIR/../00.utils/movements.sh"
|
||||
source "$SCRIPT_DIR/../01.core/pen.sh"
|
||||
source "$SCRIPT_DIR/../02.ui/warn.sh"
|
||||
|
||||
# Ask a question and get a free text answer from the user
|
||||
#
|
||||
|
@ -42,6 +47,3 @@ ask() {
|
|||
# shellcheck disable=SC2034
|
||||
outvar="$answer"
|
||||
}
|
||||
|
||||
# Export the ask function so it's available to subshells
|
||||
export -f ask
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue