diff --git a/pages/common/v.md b/pages/common/v.md new file mode 100644 index 0000000000..f2e2912790 --- /dev/null +++ b/pages/common/v.md @@ -0,0 +1,36 @@ +# v + +> A tool for managing V source code. +> More information: . + +- Compile a file and output its executable: + +`v {{path/to/file.v}}` + +- Compile the current project or directory: + +`v .` + +- Compile a file and run it: + +`v run {{path/to/file.v}}` + +- Compile a file and run it, output its executable: + +`v crun {{path/to/file.v}}` + +- Re-compile on every modification to a file: + +`v watch {{path/to/file.v}}` + +- Re-run on every modification to a file: + +`v watch run {{path/to/file.v}}` + +- Open the v repl: + +`v repl` + +- Format a file and [w]rite to it: + +`v fmt -w {{path/to/file.v}}`