go-script-bash
go-script-bash copied to clipboard
Framework for writing modular, discoverable, testable Bash scripts
## Due diligence - [x] I am familiar with the ["Reporting issues" section of CONTRIBUTING.md][reporting] - [x] I have searched the [existing issues][issues] and haven't found one that matches what...
The top level file comment mentions: ``` # . "path/to/bats/helpers" # set_bats_suite_name "${BASH_SOURCE[0]%/*}" # remove_bats_test_dirs ``` It should be `set_bats_test_suite_name` rather than `set_bats_suite_name`.
When `@go.log_command` is passed a `@go` command, and that command sets the `EXIT` trap, the `@go.log_command_invoke` trap will be overridden, leading to an always-failing status. This behavior needs to be...
Thinking of patterning a `.config/go-script-bash` directory convention along the lines of the [`XDG_CONFIG_HOME` spec](https://specifications.freedesktop.org/basedir-spec/latest/ar01s03.html). This way there could be a mechanism to import `.config/go-script-bash/*` to get the top-level config for...
Just noticed it uses `$0` instead, which always gives the full script path, not the name of the command actually used.
Noticed it'd be helpful to check for a whole array of tools at once. Could even introduce a convention whereby the alternate name/description could be appended to each tool name...
I noticed when running `./go install` from mbland/dev-setup that the scripts that call `@go.log` inside a `@go.log_command` call weren't colorizing their output. Should be an easy fix for `@go.log_command` to...
This would make it easy to activate timestamps, with an optional argument to set a different format, rather than having the user define `_GO_LOG_TIMESTAMP_FORMAT` directly.
While the command alias and `libexec/` commands are useful for project management scripts, they may collide with `_GO_STANDALONE` script commands (e.g. `edit`) and generally clutter the interface. Hence, we should...
Not quite the same as #119, though it may end up being related. More specifically, I'm thinking of generalizing the [semver](http://semver.org/) parsing and checking logic from [scripts/test.d/browser in mbland/custom-links](https://github.com/mbland/custom-links/blob/e1e6a656ca4e64842200472e964f9054e1df8115/scripts/test.d/browser#L113-L133) introduced...