refactor: separated command script

This commit is contained in:
Bernd Worsch 2025-09-13 02:39:47 +02:00
parent 0bfdf465c1
commit 7530468d80
3 changed files with 76 additions and 29 deletions

8
lib/railiance-print.sh Normal file
View file

@ -0,0 +1,8 @@
#!/usr/bin/env bash
# tools/lib/railiance-print.sh — shared pretty printers
set -euo pipefail
print_hdr() { printf "\n%s\n" "$1"; printf "%0.s-" $(seq 1 "${#1}"); echo; }
ok() { printf " ✅ %-10s %s\n" "$1" "$2"; }
warn() { printf " ⚠️ %-10s %s\n" "$1" "$2"; }
bad() { printf " ❌ %-10s %s\n" "$1" "$2"; }