ready-set-go

Crates.ioready-set-go
lib.rsready-set-go
version0.1.1
created_at2025-05-22 11:55:59.551083+00
updated_at2025-05-22 12:55:22.166372+00
descriptionRun a command after a countdown
homepagehttps://github.com/yshui/ready-set-go
repositoryhttps://github.com/yshui/ready-set-go
max_upload_size
id1685050
size7,417
Yuxuan Shui (yshui)

documentation

README

Ready, Set, Go!

Simple utility to give you a countdown before running a command. Useful for preventing running unwanted commands by mistake.

Build

rustc rsg.rs

Usage

rsg [options] <command> [args...]

Options:

    -t TIMEOUT  Set the countdown timer [default: 5s]

Alternatively, create a symbolic link to rsg. When rsg is executed via a symlink, it will execute the command same as the name of the symlink. For example:

ln -s rsg shutdown
./shutdown # will start a countdown for shutting down

rsg cannot take command line options in this form, so to specify a timeout, set the RSG_TIMEOUT environment variable. For command specific timeouts, set RSG_<COMMAND>_TIMEOUT. The precedences of these are:

-t > RSG_<COMMAND>_TIMEOUT > RSG_TIMEOUT.

Commit count: 2

cargo fmt