master/man/guard.1

94 lines
2.8 KiB
Groff
Raw Normal View History

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"
\fBguard\fR \- Guard keeps an eye on your file modifications\.
.
.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
\fBguard <COMMAND> <OPTIONS>\fR
2011-06-19 20:04:20 +00:00
.
.SH "COMMANDS"
2011-06-19 20:04:20 +00:00
.
.SS "start"
Starts Guard\. This is the default command if none is provided\.
2011-06-19 20:04:20 +00:00
.
.P
The following options are available:
2011-06-19 20:04:20 +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
.
.P
2011-08-15 07:49:21 +00:00
\fB\-n\fR, \fB\-\-notify\fR \fIFLAG\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 \fBtrue\fR/\fBfalse\fR or \fBt\fR/\fBf\fR\.
.
.P
2011-08-15 07:49:21 +00:00
\fB\-d\fR, \fB\-\-debug\fR Runs Guard in debug mode\.
.
.P
2011-08-15 07:49:21 +00:00
\fB\-g\fR, \fB\-\-group\fR \fIGROUP1\fR \fIGROUP2\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\.
.
.P
2011-08-15 07:49:21 +00:00
\fB\-w\fR, \fB\-\-watchdir\fR \fIPATH\fR
.
.P
2011-08-15 07:49:21 +00:00
Tells Guard to watch PATH instead of \fB\./\fR\.
.
2011-08-15 07:49:21 +00:00
.P
\fB\-G\fR, \fB\-\-guardfile\fR \fIFILE\fR Tells Guard to use FILE as its Guardfile instead of \fB\./Guardfile\fR or \fB~/\.Guardfile\fR\.
.
.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-15 07:49:21 +00:00
.P
If \fIGUARD\fR is present, add its default Guardfile configuration to the current Guardfile\. Note that \fIGUARD\fR is the guard\'s name without the \fBguard\-\fR prefix\. For instance to initialize guard\-rspec, run \fBguard init rspec\fR\.
2011-06-21 15:00:00 +00:00
.
.SS "list"
Lists guards that can be used with the \fBinit\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]"
List all of Guard\'s available commands\.
.
2011-08-15 07:49:21 +00:00
.P
If \fICOMMAND\fR is given, displays a specific help for \fITASK\fR\.
.
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
\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
\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
.
.P
This manual has been written by Remy Coutable\.
.
.SH "WWW"
https://github\.com/guard/guard