shell dot on steroids https://pagure.io/shellfu

mkpretty_html.sh 498B

12345678910111213141516171819202122232425262728293031
  1. #!/bin/bash
  2. mkpretty_debug() {
  3. while IFS= read line;
  4. do echo "<p class='debug'>$caller $line</p>"; done
  5. }
  6. mkpretty_die() {
  7. while IFS= read line;
  8. do echo "<p class='die'>$line</p>"; done
  9. }
  10. mkpretty_usage_is() {
  11. while IFS= read line;
  12. do echo "<p class='usage'>$line</p>"; done
  13. }
  14. mkpretty_think() {
  15. while IFS= read line;
  16. do echo "<p class='think'>$line</p>"; done
  17. }
  18. mkpretty_warn() {
  19. while IFS= read line;
  20. do echo "<p class='warn'>$line</p>"; done
  21. }