Debian Codegraph @

debian/reflex.1

raw
1 .TH REFLEX 1 "October 29, 2018" "version 0.2.0+git20181022.3df204f" "USER COMMANDS"
2
3 .SH NAME
4 Reflex \- Run a command when files change
5
6 .SH SYNOPSIS
7 .B reflex
8 [OPTIONS] [COMMAND]
9
10 .SH DESCRIPTION
11 Reflex is a small tool to watch a directory and rerun a command
12 when certain files change. It's great for automatically running
13 compile/lint/test tasks and for reloading your application when the
14 code changes.
15
16 .SH OPTIONS
17 .TP
18 .BR \-\-all=\fITrue|False\fR
19 Include normally ignored files (VCS and editor special files).
20 Defaults to False.
21
22 .TP
23 .BR \-c ", " \-\-config=\fIFILE\fR
24 A configuration file that describes how to run reflex (or '\-' to
25 read the configuration from stdin).
26
27 .TP
28 .BR \-d ", " \-\-decoration=\fIDECORATION\fR
29 How to decorate command output. Choices: none, plain, fancy. Default is plain.
30
31 .TP
32 .BR \-g ", " \-\-glob=\fIGLOB_LIST\fR
33 A shell glob expression to match filenames. (May be repeated.)
34
35 .TP
36 .BR \-G ", " \-\-inverse\-glob=\fIGLOB_LIST\fR
37 A shell glob expression to exclude matching filenames. (May be repeated.)
38
39 .TP
40 .BR \-R ", " \-\-inverse\-regex=\fIREGEX\fR
41 A regular expression to exclude matching filenames. (May be repeated.)
42
43 .TP
44 .BR \-\-only\-dirs=\fITrue|False\fR
45 Only match directories (not files). Defaults to false.
46
47 .TP
48 .BR \-\-only\-files=\fITrue|False\fR
49 Only match files (not directories). Defaults to false.
50
51 .TP
52 .BR \-r ", " \-\-regex=\fIREGEX\fR
53 A regular expression to match filenames. (May be repeated.)
54
55 .TP
56 .BR \-e ", " \-\-sequential=\fITrue|False\fR
57 Don't run multiple commands at the same time. Defaults to false.
58
59 .TP
60 .BR \-t ", " \-\-shutdown\-timeout=\fITIMEOUT\fR
61 Allow services this long to shut down. Defaults to 500ms.
62
63 .TP
64 .BR \-s ", " \-\-start\-service=\fITrue|False\fR
65 Indicates that the command is a long-running process to be
66 restarted on matching changes. Defaults to false.
67
68 .TP
69 .BR \-\-substitute=\fISTRING\fR
70 The substitution symbol that is replaced with the filename in a
71 command. Defaults to "{}"
72
73 .TP
74 .BR \-v ", " \-\-verbose=\fITrue|False\fR
75 Verbose mode: print out more information about what reflex is doing. Defaults to false.
76
77 .SH EXAMPLES
78 Print each .txt file if it changes:
79 .PP
80 .nf
81 .RS
82 reflex -r '\\.txt$' echo {}
83 .RE
84 .fi
85 .PP
86 Run
87 .BR make (1)
88 if any of the .c files in this directory change:
89 .PP
90 .nf
91 .RS
92 reflex -g '*.c' make
93 .RE
94 .fi
95 .PP
96 Build and run a server; rebuild and restart when .java files change:
97 .PP
98 .nf
99 .RS
100 reflex -r '\\.java$' -s -- sh -c 'make && java bin/Server'
101 .RE
102 .fi
103 .PP