Skip to content

Display a command output in a fixed amount of lines with the elasped time.

License

Notifications You must be signed in to change notification settings

jRimbault/scrollrun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scrollrun

Display a command output in a fixed amount of lines with the elasped time.

asciicast

Usage

Example:

scrollrun "while true; do openssl rand -base64 10; sleep .5; done"

Output:

· Elapsed time: 00:00:08
╭─
│ wfEaPaVO+KhQkw==
│ AD/MzXsaIDgMdw==
│ MpwSyWp+YHPImA==
│ vmWzGqGmNaqs2A==
│ NR1FqlCTEPkBfw==
│ JWyhIqQTqu7LJg==
│ lIXRBmqecXLqrQ==
│ 5j02LbKvmewtxw==
│ gpIVuVsBRRSpqQ==
│ cdbrzcRFB5W0dQ==
╰─
Help
Usage: scrollrun [OPTIONS] <COMMAND>

Run a command and display its output in a scrolling window.
Doesn't particularly work well with commands outputing control characters

Arguments:
  <COMMAND>  The command to run. Will be run through a shell.

Options:
  -n, --num-lines <NUM_LINES>  Number of lines to display at a time
  -h, --help                   Print help (see more with '--help')
  -V, --version                Print version

scrollrun 0.1.0 jRimbault <[email protected]>

Install

cargo install --locked --git https://github.com/jRimbault/scrollrun.git

About

Display a command output in a fixed amount of lines with the elasped time.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages