GithubHelp home page GithubHelp logo

vigilant's Introduction

vigilant

Simple command-line tool to contain and run multiple processes. Each process's stdio and stderr will be combined in beautiful technicolor. Vigilant will exit after the last process has exited.

Installation

$ npm install -g vigilant

Usage

  Usage: vigilant [options] [commands]

  Options:

    -h, --help           output usage information
    -V, --version        output the version number
    -c, --config <file>  vigilant.json config pathname (default ./vigilant.json)

Note: Vigilant will run all commands if none are specified.

Silly Example

Run:

vigilant 'date +"%y-%m-%d"' 'ls -a' 'du -d 1'

Produces:

  vigilant: 'date' running...
  vigilant: 'ls' running...
  vigilant: 'du' running...
      date: 13-11-08
        ls: .
        ls: ..
        ls: README.md
        ls: print-args.js
  vigilant: 'date' exited with 0
        du: 16  .
  vigilant: 'ls' exited with 0
  vigilant: 'du' exited with 0

Equivalently, create the vigilant.json file:

{
  "date": "date +\"%y-%m-%d\"",
  "ls": "ls -a",
  "du": "du -d 1"
}

And just run vigilant where the vigilant.json resides.

Useful Example

See the example directory

Install some useful CLIs

npm install -g coffee-script jade stylus serve

Make a vigilant.json

{
  "coffee": "coffee -w -l -j build/app.js -c src/scripts",
  "jade": "jade -w -P src/views/ -O build/",
  "stylus": "stylus -w src/styles/ -o build/",
  "serve": "serve -p 8888 build/"
}

Run vigilant

  vigilant: 'coffee' running...
  vigilant: 'jade' running...
  vigilant: 'stylus' running...
  vigilant: 'serve' running...
      jade: 
      jade:   rendered build/index.html
    coffee: path.exists is now called `fs.exists`.
    coffee: 
    coffee: 16:37:12 - compiled build/app.js
    stylus:   watching /usr/local/share/npm/lib/node_modules/stylus/lib/functions/index.styl
    stylus:   compiled build/app.css
    stylus:   watching src/styles/app.styl
     serve: serving /***/vigilant/example/build on port 8888

Vigilant is now watching and compiling all your HTML, CSS, JS and serving the result on port 8888

Todo

  • Execution sequences
  • Custom working directories

MIT License

Copyright © 2013 Jaime Pillora <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

vigilant's People

Contributors

jpillora avatar tdebarochez avatar

Watchers

 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.