https://github.com/acj/hts
Highlight lines of program output based on the latency between them
https://github.com/acj/hts
Last synced: over 1 year ago
JSON representation
Highlight lines of program output based on the latency between them
- Host: GitHub
- URL: https://github.com/acj/hts
- Owner: acj
- License: mit
- Created: 2023-09-03T01:40:29.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-11-09T12:17:58.000Z (over 2 years ago)
- Last Synced: 2025-01-04T09:08:49.355Z (over 1 year ago)
- Language: Rust
- Size: 15.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hts
Highlight lines of program output based on the latency between them

## Getting started
### Homebrew (recommended)
```
brew install acj/taps/hts
```
### From source
You'll need a [Rust toolchain](https://rustup.rs). Clone this repository, and then:
```
cargo build
```
## Usage
```
Usage: hts [OPTIONS]
Options:
-d, --debug Turn debugging information on
-n, --no-echo Do not echo lines of input as they arrive; show highlighted output after the command finishes
-m, --min-latency Don't highlight lines with latency below this threshold [default: 1ms]
-l, --latency-unit Show the latency between lines in the given unit. Valid units are ns, us, ms, s, m, h, d [default: ms]
-h, --help Print help
-V, --version Print version
```
Try piping a command into `hts`:
```
ping google.com -c 4 | hts
```
If you built hts from source, try it again with highlighting:
```
cargo clean && cargo build 2>&1 | hts
```