bro
is your bro who watches your back in command line.
go get github.com/go-again/bro@latest
bro run
USAGE:
bro [global options] command [command options] [arguments...]
COMMANDS:
init Initializes config file
run Starts watching and helping
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--debug, -d enable debug output (default: false)
--help, -h show help (default: false)
--version, -v print the version (default: false)
To work with a new project, you need bro.yaml
file under your work directory. You can quickly generate it by running:
$ bro init
Change the following values in your bro.yaml
:
run:
timeout: 5
graceful: true
This will send os.Interrupt
signal first and wait for 5
seconds before killing it forcefully.
An example configuration is available as bro.yaml
.
You can override a config value in a .bro.yaml
file which is useful for local development.