Crates.io | spacer |
lib.rs | spacer |
version | 0.3.0 |
source | src |
created_at | 2023-06-13 07:21:35.883731 |
updated_at | 2023-09-18 19:39:53.478508 |
description | A CLI utility for adding spacers when command output stops |
homepage | |
repository | https://github.com/samwho/spacer |
max_upload_size | |
id | 888760 |
size | 48,775 |
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!
With Homebrew:
brew install spacer
Direct from Cargo:
cargo install spacer
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.
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, redirect STDERR to STDOUT by using 2>&1
in your command:
my-command 2>&1 | spacer