2011-06-19 20:04:20 +00:00
. \" generated with Ronn/v0.7.3
. \" http://github.com/rtomayko/ronn/tree/0.7.3
.
2011-09-04 16:45:14 +00:00
.TH "GUARD" "1" "September 2011" "" ""
2011-06-19 20:04:20 +00:00
.
.SH "NAME"
\fB guard\fR \- Guard keeps an eye on your file modifications\.
.
2011-08-09 23:16:31 +00:00
.SH "DESCRIPTION"
Guard is a command line tool that easily handle events on files modifications\.
.
2011-06-19 20:04:20 +00:00
.SH "SYNOPSIS"
2011-08-15 07:49:21 +00:00
\fB guard <COMMAND> <OPTIONS>\fR
2011-06-19 20:04:20 +00:00
.
2011-08-09 23:16:31 +00:00
.SH "COMMANDS"
2011-06-19 20:04:20 +00:00
.
2011-08-09 23:16:31 +00:00
.SS "start"
Starts Guard\. This is the default command if none is provided\.
2011-06-19 20:04:20 +00:00
.
2011-08-09 23:16:31 +00:00
.P
The following options are available:
2011-06-19 20:04:20 +00:00
.
2011-08-09 23:16:31 +00:00
.P
2011-08-15 07:49:21 +00:00
\fB \- c\fR , \fB \- \- clear\fR Clears the Shell after each change\.
2011-06-21 15:00:00 +00:00
.
2011-08-09 23:16:31 +00:00
.P
2011-08-15 07:49:21 +00:00
\fB \- n\fR , \fB \- \- notify\fR \fI FLAG\fR Disable notifications (Growl or Libnotify depending on your system)\. Notifications can be disabled globally by setting a GUARD_NOTIFY environment variable to false\. FLAG can be \fB true\fR /\fB false\fR or \fB t\fR /\fB f\fR \.
2011-08-09 23:16:31 +00:00
.
.P
2011-08-15 07:49:21 +00:00
\fB \- d\fR , \fB \- \- debug\fR Runs Guard in debug mode\.
2011-08-09 23:16:31 +00:00
.
.P
2011-08-15 07:49:21 +00:00
\fB \- g\fR , \fB \- \- group\fR \fI GROUP1\fR \fI GROUP2\fR \. \. \. Runs only the groups specified by GROUP1, GROUP2 etc\. Groups name should be separated by spaces\. Guards that don\' t belong to a group are considered global and are always run\.
2011-08-09 23:16:31 +00:00
.
.P
2011-08-15 07:49:21 +00:00
\fB \- w\fR , \fB \- \- watchdir\fR \fI PATH\fR
2011-08-09 23:16:31 +00:00
.
.P
2011-08-15 07:49:21 +00:00
Tells Guard to watch PATH instead of \fB \. /\fR \.
2011-08-09 23:16:31 +00:00
.
2011-08-15 07:49:21 +00:00
.P
\fB \- G\fR , \fB \- \- guardfile\fR \fI FILE\fR Tells Guard to use FILE as its Guardfile instead of \fB \. /Guardfile\fR or \fB ~/\. Guardfile\fR \.
2011-08-09 23:16:31 +00:00
.
2011-09-22 20:44:15 +00:00
.SS "init [GUARD]"
2011-08-15 07:49:21 +00:00
If no Guardfile is present in the current directory, creates an empty Guardfile\.
2011-08-09 23:16:31 +00:00
.
2011-08-15 07:49:21 +00:00
.P
If \fI GUARD\fR is present, add its default Guardfile configuration to the current Guardfile\. Note that \fI GUARD\fR is the guard\' s name without the \fB guard\- \fR prefix\. For instance to initialize guard\- rspec, run \fB guard init rspec\fR \.
2011-06-21 15:00:00 +00:00
.
2011-08-09 23:16:31 +00:00
.SS "list"
Lists guards that can be used with the \fB init\fR command\.
.
2011-08-15 07:49:21 +00:00
.SS "\-T, show"
2011-06-21 15:00:00 +00:00
List defined groups and guards for the current Guardfile\.
.
2011-08-15 07:49:21 +00:00
.SS "\-h, help [COMMAND]"
2011-08-09 23:16:31 +00:00
List all of Guard\' s available commands\.
.
2011-08-15 07:49:21 +00:00
.P
If \fI COMMAND\fR is given, displays a specific help for \fI TASK\fR \.
2011-08-09 23:16:31 +00:00
.
2011-06-19 20:04:20 +00:00
.SH "EXAMPLES"
2011-08-15 07:49:21 +00:00
Initialize Guard and a specific guard at the same time:
.
.P
\fB [bundle exec] guard init [rspec]\fR
.
.P
Run Guard:
.
.P
2011-08-09 23:16:31 +00:00
\fB [bundle exec] guard [start] \- \- watchdir ~/dev \- \- guardfile ~/env/Guardfile \- \- clear \- \- group backend frontend \- \- notify false \- \- debug\fR
2011-06-19 20:04:20 +00:00
.
.P
or in a more concise way:
.
.P
2011-08-09 23:16:31 +00:00
\fB [bundle exec] guard [start] \- w ~/dev \- G ~/env/Guardfile \- c \- g backend frontend \- n f \- d\fR
2011-06-19 20:04:20 +00:00
.
.SH "AUTHORS / CONTRIBUTORS"
Thibaud Guillaume\- Gentil is the main author\.
.
.P
A list of contributors based on all commits can be found here: https://github\. com/guard/guard/contributors
.
.P
For an exhaustive list of all the contributors, please see the CHANGELOG: https://github\. com/guard/guard/blob/master/CHANGELOG\. md
2011-08-09 23:16:31 +00:00
.
.P
This manual has been written by Remy Coutable\.
.
.SH "WWW"
https://github\. com/guard/guard