Skip to content

ahoward/rego

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 @

About

run arbitrary commands easily when files change

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages