1 unstable release
| 0.1.0 | Oct 25, 2024 |
|---|
#66 in #interactive-cli
16KB
58 lines
Reveal
Interactively reveal lines from a file or stdin, one line at a time.

Usage
You can reveal lines from a file:
$ reveal example.txt

Or you can reveal lines from standard input:
cmd | reveal

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

Copying
Copyright © 2024 Eddie Antonio Santos.
See LICENSE for details.
Dependencies
~1.5MB
~38K SLoC