mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vfmt: add ability to use vfmt as a filter from stdin to stdout (#8432)
This commit is contained in:
committed by
GitHub
parent
7f5d654c3a
commit
d26ac0f6cb
@@ -1,6 +1,8 @@
|
||||
Usage:
|
||||
v fmt [options] path_to_source.v [path_to_other_source.v]
|
||||
v fmt [options] path/to/dir [path/to/other_dir]
|
||||
cat source.v | v fmt
|
||||
Read source code from stdin, output formatted file to stdout.
|
||||
|
||||
Formats the given V source files or recursively formats all files in the directory,
|
||||
then prints their formatted source to stdout.
|
||||
|
||||
Reference in New Issue
Block a user