Code Monkey home page Code Monkey logo

bra's Introduction

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 = [                    # Directories to watch
  "$WORKDIR/conf",
  "$WORKDIR/models",
  "$WORKDIR/modules",
  "$WORKDIR/routers"
]
watch_exts = [".go", ".ini"]      # Extensions to watch
ignore = [".git", "node_modules"] # Directories to exclude from watching
ignore_files = []                 # Regexps for ignoring specific notifies
follow_symlinks = false           # Enable/disable following symbolic links of sub directories
build_delay = 1500                # Minimal interval to Trigger build event
cmds = [                          # Commands to run
  ["go", "install"],
  ["go", "build"],
  ["./gogsweb"]
]

License

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

bra's People

Contributors

gillesdemey avatar gowso avatar gummiboll avatar marblenix avatar marefr avatar replay avatar sergeyt avatar unknwon avatar zhuharev avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.