Skip to content

Commit aec2882

Browse files
committed
minor #10367 [Yaml] Documenting support for multiple files or directories (yceruto, javiereguiluz)
This PR was merged into the master branch. Discussion ---------- [Yaml] Documenting support for multiple files or directories See symfony/symfony#28521 Commits ------- 23f6465 Added the versionadded directive 6cf8bef typo a5546a6 adding missing "or" 1513f22 Added support for multiple files or directories
2 parents c63cd6c + 23f6465 commit aec2882

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

components/yaml.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,13 +410,22 @@ Then, execute the script for validating contents:
410410
411411
# validates a single file
412412
$ php lint.php path/to/file.yaml
413+
414+
# or validates multiple files
415+
$ php lint.php path/to/file1.yaml path/to/file2.yaml
413416
414417
# or all the files in a directory
415418
$ php lint.php path/to/directory
419+
420+
# or all the files in multiple directories
421+
$ php lint.php path/to/directory1 path/to/directory2
416422
417423
# or contents passed to STDIN
418424
$ cat path/to/file.yaml | php lint.php
419425
426+
.. versionadded:: 4.2
427+
The feature to lint multiple files and directories was introduced in Symfony 4.2.
428+
420429
The result is written to STDOUT and uses a plain text format by default.
421430
Add the ``--format`` option to get the output in JSON format:
422431

0 commit comments

Comments
 (0)