mbland / go-script-bash

Framework for writing modular, discoverable, testable Bash scripts
ISC License
95 stars 16 forks source link

Add `ok` command #189

Closed mbland closed 7 years ago

mbland commented 7 years ago

After writing a number of tests relying on the default help output from ./go (without any commands) to determine that a ./go script is functioning properly, and trying to write a _GO_STANDALONE script that uses a separate ./go script to download the framework, I realized it would be nice to have an ok command to do nothing but respond with a successful exit value.

This can be simulated with ./go run true, but ok would be a nicer interface (plus more efficient, as it wouldn't invoke any subshells at all).