1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00

v: add page (#15235)

Co-authored-by: Juri Dispan <juri.dispan@posteo.net>
This commit is contained in:
CreeperFace 2024-12-20 18:44:16 +00:00 committed by GitHub
parent 5111f12026
commit 9ac5a701df
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

36
pages/common/v.md Normal file
View file

@ -0,0 +1,36 @@
# v
> A tool for managing V source code.
> More information: <https://docs.vlang.io/getting-started.html>.
- 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}}`