Skip to content

Commit 23c8284

Browse files
committed
Add some documentation about the new ability to read from stdin, introduced with #239
Signed-off-by: Isaac Bennetch <[email protected]>
1 parent 237edc2 commit 23c8284

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ Command line utility to tokenize SQL query:
4747
./vendor/bin/tokenize-query --query "SELECT 1"
4848
```
4949

50+
All commands are able to parse input from stdin (standard in), such as:
51+
52+
```sh
53+
echo "SELECT 1" | ./vendor/bin/highlight-query
54+
cat example.sql | ./vendor/bin/lint-query
55+
```
5056
### Formatting SQL query
5157

5258
```php

0 commit comments

Comments
 (0)