Skip to content
/ bra Public
forked from unknwon/bra

Bra (Brilliant Ridiculous Assistant) is a command line utility tool.

License

Notifications You must be signed in to change notification settings

hemasalma/bra

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Brilliant Ridiculous Assistant

Bra (Brilliant Ridiculous Assistant) is a command line utility tool.

Usage

USAGE:
   Bra [global options] command [command options] [arguments...]

COMMANDS:
   init		initialize config template file
   run		start monitoring and notifying
   help, h	Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --help, -h		show help
   --version, -v	print the version

Quick Start

To work with a new app, you have to have a .bra.toml file under the work directory. You can quickly generate a default one by executing following command:

$ bra init

FAQs

How to I gracefully shutdown the application?

Change following values in your .bra.toml:

[run]
interrupt_timout = 15
graceful_kill = true

This will send os.Interrupt signal first and wait for 15 seconds before force kill.

Configuration

An example configuration take form gogsweb:

[run]
init_cmds = [["./gogsweb"]]		# Commands run in start
watch_all = true				# Watch all sub-directories
watch_dirs = [
	"$WORKDIR/conf",
	"$WORKDIR/models",
	"$WORKDIR/modules",
	"$WORKDIR/routers"
]								# Directories to watch
watch_exts = [".go", ".ini"]	# Extensions to watch
ignore = [".git", "node_modules"] # Directories to exclude from watching
ignore_files = []             # Regexps for ignoring specific notifies
build_delay = 1500				# Minimal interval to Trigger build event
cmds = [
	["go", "install"],
	["go", "build"],
	["./gogsweb"]
]								# Commands to run

License

This project is under Apache v2 License. See the LICENSE file for the full license text.

About

Bra (Brilliant Ridiculous Assistant) is a command line utility tool.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%