refactor: separated command script
Some checks failed
railiance-tests / smoke (push) Has been cancelled

This commit is contained in:
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"; }