https://github.com/msantos/prv-rs
prv: pressure relief valve for Unix process pipelines
https://github.com/msantos/prv-rs
flowcontrol stdio
Last synced: 11 months ago
JSON representation
prv: pressure relief valve for Unix process pipelines
- Host: GitHub
- URL: https://github.com/msantos/prv-rs
- Owner: msantos
- License: isc
- Created: 2022-09-21T12:52:25.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-03T13:15:46.000Z (about 3 years ago)
- Last Synced: 2025-02-13T05:30:14.053Z (about 1 year ago)
- Topics: flowcontrol, stdio
- Language: Rust
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SYNOPSIS
prv *option*
# DESCRIPTION
prv: pressure relief valve for Unix process pipelines
prv flow controls standard input by sampling lines in a time window.
# EXAMPLES
while :; do date; done | prv -l 1 -w 10
Fri Aug 26 00:05:45 EDT 2022
Fri Aug 26 00:05:54 EDT 2022
Fri Aug 26 00:06:04 EDT 2022
^C
# BUILD
cargo build
# OPTIONS
-l, --limit *number*
: message rate limit (default: 0 (no limit))
-w, --window *seconds*
: message rate window (default: 1 second)
-W, --write-error *exit|drop|block*
: behaviour if write buffer is full
-v, --verbose
: verbose mode
-h, --help
: help