Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

run arbitrary commands easily when files change

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 bin
Octocat-spinner-32 lib
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 rego.gemspec
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 @

Something went wrong with that request. Please try again.