-
Notifications
You must be signed in to change notification settings - Fork 198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Line numbers for debug mode #105
Comments
Expanding upon #103, I've finished the code portion of adding colour and line numbers to debug mode.
Incidentally, this PR passes All current tests are passing on 👷 PR coming next, and then I plan to add ✅ tests to cover the expected output. Virgil |
@kvz any idea what went wrong with the 🍏osx tests here: https://travis-ci.com/virgilwashere/bash3boilerplate/builds/117169882 ?? 🐧linux passed! This should be the extent of the changes... dist: xenial
addons:
homebrew:
update: true
packages:
- coreutils
- gnu-sed and the homebrew is just moving to |
Need to send in TZ=UTC for test otherwise it will use current environment variable and fail to pass diff Closes kvz#105
This is a well known function, and this commit eliminates 10 or lines of redunandant output on each execution. Closes kvz#105
- [x] feat(debug): ✨ add color to PS4 prompt - [x] use `strftime(3)` formatting - [x] standardise timestamps to UTC - [x] save and restore TZ if sourced - [x] perf(log): ⚡️ use `printf` to remove fork() to date in - [x] perf(debug): do not `xtrace` log function - [x] refactor(err_report): 🔨 prevent potential ERR trap recursion - [x] style(): 🚨 shellcheck linting to pass CI - [x] docs(README): 👥 add @virgilwashere to authors - [x] docs(changelog): 📝 changelog entries for debug mode - [x] ✅ `main-debug-ps4` scenario and fixture - kvz#103 - kvz#105 - kvz#107 ---- PR created with `GitHub Pull Request` inside `vscode` 😁
- [x] feat(debug): ✨ add color to PS4 prompt - [x] use `strftime(3)` formatting - [x] standardise timestamps to UTC - [x] save and restore TZ if sourced - [x] perf(log): ⚡️ use `printf` to remove fork() to date in - [x] perf(debug): do not `xtrace` log function - [x] refactor(err_report): 🔨 prevent potential ERR trap recursion - [x] style(): 🚨 shellcheck linting to pass CI - [x] docs(README): 👥 add @virgilwashere to authors - [x] docs(changelog): 📝 changelog entries for debug mode - [x] ✅ `main-debug-ps4` scenario and fixture - kvz#103 - kvz#105 - kvz#107 ---- PR created with `GitHub Pull Request` inside `vscode` 😁
Left a comment in that PR 👌 |
- [x] feat(debug): ✨ add color to PS4 prompt - [x] use `strftime(3)` formatting - [x] standardise timestamps to UTC - [x] save and restore TZ if sourced - [x] perf(log): ⚡️ use `printf` to remove fork() to date in - [x] perf(debug): do not `xtrace` log function - [x] refactor(err_report): 🔨 prevent potential ERR trap recursion - [x] style(): 🚨 shellcheck linting to pass CI - [x] docs(README): 👥 add @virgilwashere to authors - [x] docs(changelog): 📝 changelog entries for debug mode - [x] ✅ `main-debug-ps4` scenario and fixture - kvz#103 - kvz#105 - kvz#107 ---- PR created with `GitHub Pull Request` inside `vscode` 😁
Possible implementation here:
https://coderwall.com/p/wil8da/debug-bash-scripts-with-line-numbers-more-info
The text was updated successfully, but these errors were encountered: