reveal-cli

Crates.ioreveal-cli
lib.rsreveal-cli
version0.1.0
sourcesrc
created_at2024-10-25 09:19:19.267534
updated_at2024-10-25 09:19:19.267534
descriptionInteractively reveal lines from a file or `stdin`, one line at a time.
homepage
repositoryhttps://github.com/eddieantonio/reveal
max_upload_size
id1422264
size42,505
Eddie Antonio Santos (eddieantonio)

documentation

README

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.

Commit count: 6

cargo fmt