Properly source modules

This commit is contained in:
Manuele Sarfatti 2025-05-11 13:37:25 +02:00
parent cdbc191d7b
commit cb53800a20
15 changed files with 114 additions and 397 deletions

View file

@ -1,8 +1,8 @@
#!/usr/bin/env bash
# pen.sh - Print pretty text
# @depends on:
# - _symbols.sh
[[ $BEDDU_PEN_LOADED ]] && return
readonly BEDDU_PEN_LOADED=true
# Print text with ANSI color codes and text formatting
#
@ -57,6 +57,3 @@ pen() {
printf "%b%s%b%b" "${format_code}" "${text}" "${reset_code}" "${new_line}"
}
# Export the pen function so it's available to subshells
export -f pen

View file

@ -1,6 +1,9 @@
#!/usr/bin/env bash
# run.sh - Execute commands with output/error capture
[[ $BEDDU_RUN_LOADED ]] && return
readonly BEDDU_RUN_LOADED=true
# Execute a command with stdout and stderr capture capabilities
#
# Usage:
@ -54,6 +57,3 @@ run() {
rm -f "${stdout_file}" "${stderr_file}"
return $exit_code
}
# Export the run function so it's available to subshells
export -f run