1
0
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:
Julia Bogdan Filipchuk
2021-01-30 02:38:54 -08:00
committed by GitHub
parent 7f5d654c3a
commit d26ac0f6cb
4 changed files with 49 additions and 34 deletions

View File

@@ -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.