refactor: separated command script
This commit is contained in:
parent
0bfdf465c1
commit
7530468d80
3 changed files with 76 additions and 29 deletions
8
lib/railiance-print.sh
Normal file
8
lib/railiance-print.sh
Normal 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"; }
|
||||
Loading…
Add table
Add a link
Reference in a new issue