Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/samwho/spacer
CLI tool to insert spacers when command output stops
https://github.com/samwho/spacer
cli
Last synced: 2 days ago
JSON representation
CLI tool to insert spacers when command output stops
- Host: GitHub
- URL: https://github.com/samwho/spacer
- Owner: samwho
- License: mit
- Created: 2023-06-10T18:00:03.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-19T08:12:16.000Z (3 months ago)
- Last Synced: 2024-12-05T02:04:32.458Z (9 days ago)
- Topics: cli
- Language: Rust
- Homepage: https://github.com/samwho/spacer
- Size: 547 KB
- Stars: 893
- Watchers: 3
- Forks: 10
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# spacer
[![Build status](https://github.com/samwho/spacer/workflows/Build/badge.svg)](https://github.com/samwho/spacer/actions)
[![Crates.io](https://img.shields.io/crates/v/spacer.svg)](https://crates.io/crates/spacer)`spacer` is a simple CLI tool to insert spacers when command output stops.
If you're the type of person that habitually presses enter a few times in your
log tail to know where the last request ended and the new one begins, this tool
is for you!![](/images/spacer.gif)
## Installation
With Homebrew:
```bash
brew install spacer
```Direct from Cargo:
```bash
cargo install spacer
```## Usage
By default, `spacer` outputs a spacer after 1 second with no output. You can
change this with the `--after` flag.```bash
tail -f some.log | spacer --after 5
````--after` accepts a number of seconds, and allows floating point numbers for
extra precision.## STDOUT and STDERR
Some commands output most of their information on STDERR, not STDOUT. `spacer`
only monitors STDOUT, so if you find a situation where `spacer` doesn't seem
to be working it could be that the program you're piping from is using STDERR.To "fix" that, pipe both STDERR to STDOUT to spacer by using `|&` instead of
`|` as the pipe characters:```bash
my-command |& spacer
```