mirror of
https://github.com/mjsarfatti/beddu.git
synced 2025-06-27 09:28:00 +02:00
Properly source modules
This commit is contained in:
parent
cdbc191d7b
commit
cb53800a20
15 changed files with 114 additions and 397 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue