Skip to content

go-again/bro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bro - runs commands when files changed

bro is your bro who watches your back in command line.

Installation

go get github.com/go-again/bro@latest

Usage

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)

Quick Start

To work with a new project, you need bro.yaml file under your work directory. You can quickly generate it by running:

$ bro init

FAQs

How do I gracefully restart an application?

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.

Configuration

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.