#filter #interactive #cli

app reveal-cli

Interactively reveal lines from a file or stdin, one line at a time

1 unstable release

0.1.0 Oct 25, 2024

#919 in Command line utilities

GPL-3.0-or-later

16KB
58 lines

Reveal

Interactively reveal lines from a file or stdin, one line at a time.

An animation of reveal on the command line

Usage

You can reveal lines from a file:

$ reveal example.txt

An animation of reveal being used to display a file

Or you can reveal lines from standard input:

cmd | reveal

An animation of reveal being used to reveal cowsay

Motivating example

Imagine you're holding a raffle at a meetup. You're going to give away 3 prizes. All of the attendees have been assigned a number, from 1 to 30.

seq 30 | ...

Now shuffle the members (requires GNU shuf):

seq 30 | shuf | ...

Select only the first 3:

seq 30 | shuf | head -3 | ...

And now add suspense by using reveal!

seq 30 | shuf | head -3 | reveal

An animation of reveal being used to 3 random numbers

Copying

Copyright © 2024 Eddie Antonio Santos.

See LICENSE for details.

Dependencies

~1.5MB
~35K SLoC