Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Added support for multiple files or directories
  • Loading branch information
yceruto authored Sep 19, 2018
commit 1513f223d2d73e16b86078ed53f84a7aa87abb51
6 changes: 6 additions & 0 deletions components/yaml.rst
Original file line number Diff line number Diff line change
Expand Up @@ -410,9 +410,15 @@ Then, execute the script for validating contents:

# validates a single file
$ php lint.php path/to/file.yaml

# validates a multiple files
$ php lint.php path/to/file1.yaml path/to/file2.yaml

# or all the files in a directory
$ php lint.php path/to/directory

# or all the files in multiple directories
$ php lint.php path/to/directory1 path/to/directory2

# or contents passed to STDIN
$ cat path/to/file.yaml | php lint.php
Expand Down