Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

We’re showing branches in this repository, but you can also compare across forks.

base fork: ahoward/rego
base: 43870ebf69
...
head fork: ahoward/rego
compare: 044a60a783
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 2 contributors
Showing with 13 additions and 13 deletions.
  1. +5 −5 README
  2. +8 −8 bin/rego
10 README
View
@@ -23,21 +23,21 @@ EXAMPLES
# say hai whenever the file foo.txt changes
#
- ~> rego echo hai -- foo.txt
+ ~> rego foo.txt -- echo hai
# say hai whenever any file (recursively) in bar changes
#
- ~> rego echo hai -- ./bar/
+ ~> rego ./bar/ -- echo hai
# echo *the file that changed* when any file (recursively) in bar changes
#
- ~> rego echo "@ was changed" -- ./bar/
+ ~> rego ./bar/ -- echo "@ was changed"
# run a specific test whenever anything in lib, test, app, or config changes
#
- ~> rego ruby -Itest ./test/units/foo_test.rb --name teh_test -- {lib,test,app,config}
+ ~> 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 ruby -Itest @ -- ./test
+ ~> rego ./test -- ruby -Itest @
16 bin/rego
View
@@ -18,26 +18,26 @@ Main {
### gem install rego
-
+
# say hai whenever the file foo.txt changes
#
- ~> rego echo hai -- foo.txt
+ ~> rego foo.txt -- echo hai
- # say hai whenever any file (recursively) in bar changes
+ # say hai whenever any file (recursively) in bar changes
#
- ~> rego echo hai -- ./bar/
+ ~> rego ./bar/ -- echo hai
- # echo *the file that changed* when any file (recursively) in bar changes
+ # echo *the file that changed* when any file (recursively) in bar changes
#
- ~> rego echo "@ was changed" -- ./bar/
+ ~> rego ./bar/ -- echo "@ was changed"
# run a specific test whenever anything in lib, test, app, or config changes
#
- ~> rego ruby -Itest ./test/units/foo_test.rb --name teh_test -- {lib,test,app,config}
+ ~> 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 ruby -Itest @ -- ./test
+ ~> rego ./test -- ruby -Itest @
__
def run

No commit comments for this range

Something went wrong with that request. Please try again.