#command-output #command-line-tool #log #stops #cli #insert #spacers

app spacer

A CLI utility for adding spacers when command output stops

9 releases

0.3.1 Jan 24, 2025
0.3.0 Sep 18, 2023
0.2.0 Aug 31, 2023
0.1.8 Jun 25, 2023

#197 in Command line utilities

Download history 20/week @ 2024-10-11 13/week @ 2024-10-18 23/week @ 2024-10-25 70/week @ 2024-11-01 8/week @ 2024-11-08 39/week @ 2024-11-15 21/week @ 2024-11-22 18/week @ 2024-11-29 24/week @ 2024-12-06 15/week @ 2024-12-13 84/week @ 2024-12-20 56/week @ 2024-12-27 86/week @ 2025-01-03 70/week @ 2025-01-10 62/week @ 2025-01-17 184/week @ 2025-01-24

412 downloads per month

MIT license

20KB
457 lines

spacer

Build status Crates.io

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!

Installation

With Homebrew:

brew install spacer

Direct from Cargo:

cargo install spacer

Usage

By default, spacer outputs a spacer after 1 second with no output. You can change this with the --after flag.

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:

my-command |& spacer

Dependencies

~8–20MB
~295K SLoC