• Stars
    star
    884
  • Rank 51,646 (Top 2 %)
  • Language
    Rust
  • License
    MIT License
  • Created over 1 year ago
  • Updated 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

CLI tool to insert spacers when command output stops

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 tap samwho/spacer
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, redirect STDERR to STDOUT by using 2>&1 in your command:

my-command 2>&1 | spacer

More Repositories

1

visualisations

Code behind my visualisation blog posts
TypeScript
165
star
2

hmm

A small command-line note taking app written in Rust. Notes are written in plain text and indexed by the time they were written.
Rust
83
star
3

todo-txt-gem

A RubyGem for parsing todo.txt files.
Ruby
69
star
4

symbol.wtf

A dumb website I made for when I need a symbol.
JavaScript
61
star
5

assam

The Assam virtual processor in Ruby.
Ruby
28
star
6

vimcolorscheme

A Ruby DSL for creating Vim color schemes.
25
star
7

obsidian-wikidata-importer

A plugin for importing data from Wikidata into your Obsidian vault.
TypeScript
25
star
8

pixijs-layout

SwiftUI-inspired layout library for PixiJS
JavaScript
17
star
9

PHP-Routing

Rails-style routing for PHP.
PHP
16
star
10

streamdeck

StreamDeck plugin API bindings for Go.
Go
16
star
11

lolreplay

A Ruby library for accessing LoL Replay metadata in .lrf files
Ruby
16
star
12

recolor

Rust
15
star
13

iex-rs

Rust wrapper around the IEX API.
Rust
13
star
14

result

A Rust-like Result type for Java.
Java
12
star
15

rust-debugger

A ptrace-based debugger written in Rust.
Rust
12
star
16

GitHub-Pull-Request-Email-Bot

Sends email notifications of pull requests on a GitHub repo.
PHP
10
star
17

streamdeck-plugin-skeleton

Golang StreamDeck plugin skeleton.
Makefile
10
star
18

streamdeck-livesplit

StreamDeck LiveSplit plugin. Control LiveSplit with your StreamDeck.
Go
9
star
19

scrabble-solver

A command line scrabble solver written in Ruby.
Ruby
9
star
20

rust-lisp-with-traits

Rust
6
star
21

jarvis

A generative audio project written in Ruby.
Python
5
star
22

vm

A University virtual machine project.
Python
4
star
23

csvm

C# Virtual Machine project, based on a tutorial by Alan Bryan.
C#
3
star
24

fu

A collection of functional utilities written in Golang.
Go
3
star
25

Ruby-ThinkUp-API-Client-library

A client library for the ThinkUp API written in Ruby.
Ruby
3
star
26

PHP-Docgen

A project aimed towards creating maintainable documentation from your PHP code.
PHP
2
star
27

jvm-rs

An attempt at creating a Rust JVM (I did not get far, class loading is hard).
Rust
2
star
28

battlecode-2017

My code for the battlecode 2017 competition.
Java
2
star
29

Poker-Hand-Analyser

A Ruby library for analysing poker hands.
Ruby
2
star
30

ministrace

A miniature strace implementation
C
2
star
31

samwhOS

An attempt to port xv6 to Rust.
Rust
2
star
32

obslint

Linter for Obsidian vaults.
Rust
2
star
33

advent-of-code-2021

Rust
1
star
34

lookup

A dictionary lookup script written in Ruby, using the Wordnik API.
Ruby
1
star
35

whatis

whatis is a modern replacement for the `file` command
Rust
1
star
36

todo-txt-scala

An implementation of my todo-txt-gem project in Scala.
JavaScript
1
star
37

ThinkUp-GUI-Test-Runner

A graphical user interface to the ThinkUp testing framework.
Java
1
star
38

timl

A Tiny XML building library, akin to builder.
Ruby
1
star
39

airbrake-sinatra

A Sinatra helper method for injecting the Airbrake javascript into your templates.
Ruby
1
star
40

awair-prometheus-exporter

Prometheus exporter for the Awair Element using its local HTTP API
Rust
1
star
41

earthquake-plugins

My earthquake plugins.
Ruby
1
star
42

hive-prometheus-exporter

A Prometheus exporter for Hive Home smart home products.
Python
1
star
43

obtions

A command line option parser for Ruby. Not in use. Use http://github.com/defunkt/choice instead.
Ruby
1
star
44

anchorify

A simple Ruby script for automatically creating anchored headings and tables of contents in HTML documents.
Ruby
1
star
45

advent-of-code-2020

Rust
1
star
46

yourtime.zone

HTML
1
star
47

todo-notify-gem

A command line program for remind you of items in your todo list.
Ruby
1
star
48

livesplit

Go bindings to the LiveSplit Server API.
Go
1
star
49

Gommoize

A joke program that will replace all vowels with "O" on a given input.
Ruby
1
star
50

coder-dojo-hacking

Practical stuff for Coder Dojo 06-10-2012.
Ruby
1
star
51

vscode-write

The writer's toolbox for VSCode.
TypeScript
1
star
52

rust-pram

A physical RAM viewer in Rust.
Rust
1
star
53

couchdb-playground

Personal experiments on the behaviour of CouchDB
Python
1
star
54

entropy-vis

A CLI tool for quickly visualising the entropy of a file
Rust
1
star