Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bjesus authored Sep 2, 2024
1 parent ffb83e3 commit 060b068
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ curl https://news.ycombinator.com/

<details><summary>Get as JSON</summary>

Add the `--json` flag to make Pipet, like `go run github.com/bjesus/pipet/cmd/pipet@latest --json myfile.pipet` or `pipet --json myfile.file`</details>
Add the `--json` flag to make Pipet print a nice JSON, like `--json hackernews.pipet`</details>
<details><summary>Render to a template</summary>Peek a boo!</details>
<details><summary>Use pipes</summary>

You can use unix pipes after your queries as if it was a normal command line. For example, count the charaters in the title and extract the full URL using [htmlq](https://github.com/mgdm/htmlq):
Use unix pipes after your queries as if they were running in your shell. For example, count the charaters in the title and extract the full URL using [htmlq](https://github.com/mgdm/htmlq):

```
curl https://news.ycombinator.com/
Expand All @@ -50,7 +50,7 @@ curl https://news.ycombinator.com/
.title .titleline a
```

And run it with `pipet --interval 60 --on-change "notify-send {}" hackernews.pipet`
Run it with `--interval 60 --on-change "notify-send {}" hackernews.pipet`

</details>

Expand Down

0 comments on commit 060b068

Please sign in to comment.