@@ -8,19 +8,21 @@ Examples:
8
8
`hello` or `hello.exe`.
9
9
v run hello.v Same as above but also run the produced
10
10
executable immediately after compilation.
11
- v -g run hello.v Same as above, but make debugging easier
12
- (in case your program crashes).
13
- v crun hello.v Same as above, but do not recompile, if the
14
- executable already exists, and is newer than the
11
+ v -g run hello.v Same as above but makes debugging easier
12
+ (Useful in case your program crashes).
13
+ (see `v help build` and `v help build-c`
14
+ for more information)
15
+ v crun hello.v Same as above but do not recompile if the
16
+ executable already exists and is newer than the
15
17
sources.
16
- v -o h.c hello.v Translate `hello.v` to `h.c`. Do not compile
18
+ v -o h.c hello.v Translate `hello.v` to `h.c` only . Do not compile
17
19
further.
18
- v -o - hello.v Translate `hello.v` and output the C source code
19
- to stdout. Do not compile further.
20
- v watch hello.v Re-does the same compilation, when a source code
21
- change is detected.
22
- The program is only compiled, not run .
23
- v watch run hello.v Re-runs the same `hello.v` file, when a source
20
+ v -o - hello.v Translates `hello.v` and outputs the C source
21
+ code to stdout. Does not compile further.
22
+ v watch hello.v Re-do the same compilation when a source code
23
+ change is detected. The compiled result does not
24
+ get executed, only compiled.
25
+ v watch run hello.v Re-run the same `hello.v` file when a source
24
26
code change is detected.
25
27
26
28
V supports the following commands:
@@ -44,11 +46,13 @@ V supports the following commands:
44
46
fmt Format the V code provided.
45
47
vet Report suspicious code constructs.
46
48
doc Generate the documentation for a V module.
49
+ example: `v doc strings`
47
50
vlib-docs Generate and open the documentation of all the
48
51
vlib modules.
49
- repl Run the REPL.
52
+ repl Run the REPL (Read-eval-print loop) .
50
53
watch Re-compile/re-run a source file, each time it is
51
54
changed.
55
+ example: `v watch run hello.v`
52
56
where Find and print the location of current project
53
57
declarations.
54
58
@@ -76,5 +80,5 @@ Use "v help other" to see less frequently used commands.
76
80
Use "v help topics" to see a list of all known help topics.
77
81
78
82
Note: Help is required to write more help topics.
79
- Only build, new, init, doc, fmt, vet, run, test, watch, search, install, remove,
80
- update, bin2v, check-md are properly documented currently.
83
+ Only build, new, init, doc, fmt, vet, run, test, watch, search, install,
84
+ remove, update, bin2v, check-md are properly documented currently.
0 commit comments