No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
vendor/github.com
Gopkg.lock
Gopkg.toml
Readme.md
bios.sh
main.go
run_test.go

Readme.md

run

run is a utility for running commands in test environments. It adds human and machine friendly execution info to stderr, while preserving stdin, stdout and exit codes for the command.

The output is compatible with the BIOS GitHub App.

$ go get github.com/nzoschke/run

$ run -h
usage: run [options] cmd [args]
  -help
    	show usage
  -s string
    	Add status messages to stderr

$ run true
EXEC: "true"
EXIT: 0
TIME: 0.0s

$ run false
EXEC: "false"
EXIT: 1
TIME: 0.0s

$ run -s Cloning git clone https://github.com/nzoschke/run
STAT: Cloning
EXEC: "git clone https://github.com/nzoschke/run"
    Cloning into 'run'...
EXIT: 0
TIME: 0.4s

$ run -s Cloning git clone https://github.com/nzoschke/run
STAT: Cloning
EXEC: "git clone https://github.com/nzoschke/run"
    fatal: destination path 'run' already exists and is not an empty directory.
EXIT: 128
TIME: 0.0s
FAIL: Cloning