sleep-progress

Crates.iosleep-progress
lib.rssleep-progress
version0.2.0
sourcesrc
created_at2022-11-15 06:21:24.799258
updated_at2023-06-01 10:13:52.359352
descriptiondelay for a specified amount of time
homepagehttps://github.com/djedi23/sleep-progress.rs
repositoryhttps://github.com/djedi23/sleep-progress.rs
max_upload_size
id715469
size53,722
Moïse Valvassori (djedi23)

documentation

README

Sleep progress

sleep-progress is a clone of GNU sleep with an optional progress bar.

demo

The arguments are compatible with the original sleep but you can add --progress or -p to display a progress bar with an ETA. You can wait until a timestamp is reached with --until or -u. Example: sleep-progress -u 15:35

It can be use as a replacement for GNU sleep: alias sleep=sleep-progress .

WARNING: the displayed ETA may not be as accurate as the sleep delay.

Usage: sleep-progress [OPTIONS] [NUMBER]...

Arguments:
  [NUMBER]...  Pause  for  NUMBER seconds.
               SUFFIX may be 's' for seconds (the default), 'm' for minutes, 'h' for hours or 'd' for days.
               NUMBER need not be an integer.
               Given two or more arguments, pause for the amount of time specified by the sum of their values

Options:
  -u, --until <TIMESPEC>  Sleep until this timestamp
  -p, --progress          Display the sleep indicator
  -h, --help              Print help information
  -V, --version           Print version information

Installation

Binaries

Download the binary for your architecture from https://github.com/djedi23/sleep-progress.rs/releases

From cargo

Ensure Rust is installed: https://www.rust-lang.org/tools/install

cargo install sleep-progress

From source

Ensure Rust is installed: https://www.rust-lang.org/tools/install

git clone https://github.com/djedi23/sleep-progress.rs.git
cd sleep-progress.rs
cargo install --path .
Commit count: 13

cargo fmt