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).
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 anok
command to do nothing but respond with a successful exit value.This can be simulated with
./go run true
, butok
would be a nicer interface (plus more efficient, as it wouldn't invoke any subshells at all).