Skip to content

🐌 v2.5.4 🍬🎰

Compare
Choose a tag to compare
@oldratlee oldratlee released this 12 Apr 05:47
· 0 commits to dev-2.x since this release

repo-icon

☘️ Features

  • [c]: ensure using command on PATH, and check the command existence on PATH 👣
  • [coat/taoc]: add --help/--version options 🚩

🍬 Improvements

  • [find-in-jars]: add IFS= for read, more robust 💪
    • file paths may contain leading spaces
  • [show-busy-java-threads]:
    • improve separator blank line output 💅 fix wrong blank line logic
    • extract timestamp var to avoid inconsistency ⌚️
  • unify error message format and refactor related functions ℹ️
    • keep usage function simple
    • use -s/-h option for optional argument of die function
  • use ${var##*/} instead of basename to assign PROG var 🎛️
    • faster, no subprocess fork
  • use command realpath instead of function portableReadLink 🔗
    • faster and without losing portability
  • use bash builtin type -P instead of which command, faster 🐚

🛠️ Refactor

  • [show-busy-java-threads]: rename global var USER -> WHOAMI 👤
  • [uq]: use exponential operation instead of multiplication to calculate size 🧮
  • [c]: rename functions 🔡
  • use Shell Arithmetic comparison instead of Conditional Expressions 🔢
  • use = instead of == in Conditional Expressions
  • use ||/&& instead of one branch/one line if 🎰
  • inline colorPrint function if only one caller
  • variable related refactors:
    • extract UNAME var 🔠
    • rename var, use COLOR_INDEX instead of COUNT
    • remove declare keyword for global vars, more consistent
    • use upper-case var name for global readonly vars
    • unset temp global vars after use
    • remove unnecessary {} when use var
    • remove local nl=$'\n' declaration if only one usage
  • small code cleanup
    • remove unnecessary file descriptor number 1 in redirections ➡️
    • remove section comments for simple section
    • improve/fix/add code comments

📚 Documentation

  • update manual pages links to manned.org 📚
  • use shellcheck item doc link instead of prolixity comments ✨

🚜 Build/CI

  • upgrade GitHub actions; add dependabot.yml 🤖
  • upgrade shunit2 lib

Have Fun! 💕
2024-04-12