run arbitrary commands easily when files change
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin ruby 2, gem 2.0.0 Mar 1, 2018
lib yup Mar 2, 2018
pkg v2.1.0 Mar 2, 2018
README.md README.md Nov 4, 2013
Rakefile v2.0.1 Mar 2, 2018
rego.gemspec v2.1.0 Mar 2, 2018

README.md

NAME

rego

SYNOPSIS

rego ./files ./to ./watch -- command-to-run

INSTALL

gem install rego

DESCRIPTION

run arbitrary commands easily when files change

PARAMETERS

--help, -h

EXAMPLES

  # say hai whenever the file foo.txt changes
  #
    ~> rego foo.txt -- echo hai

  # say hai whenever any file (recursively) in bar changes 
  #
    ~> rego ./bar/ -- echo hai

  # echo *the file that changed* when any file (recursively) in bar changes 
  #
    ~> rego ./bar/ -- echo "@ was changed"

  # run a specific test whenever anything in lib, test, app, or config changes
  #
    ~> rego {lib,test,app,config} -- ruby -Itest ./test/units/foo_test.rb --name teh_test

  # run a specific test whenever it, or your app, has changed
  #
    ~> rego ./test -- ruby -Itest @