README.md in rerun-0.12.0 vs README.md in rerun-0.13.0
- old
+ new
@@ -124,10 +124,12 @@
rerun foreman start
# Options:
+These options can be specified on the command line and/or inside a `.rerun` config file (see below).
+
`--dir` directory (or directories) to watch (default = "."). Separate multiple paths with ',' and/or use multiple `-d` options.
`--pattern` glob to match inside directory. This uses the Ruby Dir glob style -- see <http://www.ruby-doc.org/core/classes/Dir.html#M002322> for details.
By default it watches files ending in: `rb,js,coffee,css,scss,sass,erb,html,haml,ru,yml,slim,md,feature,c,h`.
On top of this, it also ignores dotfiles, `.tmp` files, and some other files and directories (like `.git` and `log`).
@@ -165,10 +167,27 @@
`--verbose` enables even more messages (unless you also specified `--quiet`, which overrides `--verbose`)
Also `--version` and `--help`, naturally.
+## Config file
+
+If the current directory contains a file named `.rerun`, it will be parsed with the same rules as command-line arguments. Newlines are the same as any other whitespace, so you can stack options vertically, like this:
+
+```
+--quiet
+--pattern **/*.{rb,js,scss,sass,html,md}
+```
+
+Options specified on the command line will override those in the config file. You can negate boolean options with `--no-`, so for example, with the above config file, to re-enable logging, you could say:
+
+```sh
+rerun --no-quiet rackup
+```
+
+If you're not sure what options are being overwritten, use `--verbose` and rerun will show you the final result of the parsing.
+
# Notifications
If you have `growlnotify` available on the `PATH`, it sends notifications to
growl in addition to the console.
@@ -248,15 +267,15 @@
```
# To Do:
## Must have for v1.0
-* ".rerun" file to specify options per project or in $HOME.
* Make sure to pass through quoted options correctly to target process [bug]
* Optionally do "bundle install" before and "bundle exec" during launch
## Nice to have
+* ".rerun" file in $HOME
* If the last element of the command is a `.ru` file and there's no other command then use `rackup`
* Figure out an algorithm so "-x" is not needed (if possible) -- maybe by accepting a "--port" option or reading `config.ru`
* Specify (or deduce) port to listen for to determine success of a web server launch
* see also [todo.md](todo.md)
@@ -365,9 +384,13 @@
* Antonio Terceiro <https://github.com/terceiro>
* <https://github.com/mattbrictson>
* <https://github.com/krissi>
# Version History
+
+* v0.13.0 26 January 2018
+ * bugfix: pause/unpause works again (thanks Barry!)
+ * `.rerun` config file
* v0.12.0 23 January 2018
* smarter `--signal` option, allowing you to specify a series of signals to try in order; also `--wait` to change how long between tries
* `--force-polling` option (thanks ajduncan)
* `f` key to force stop and start (thanks mwpastore)