#count-down #ready #go #build

app ready-set-go

Run a command after a countdown

2 releases

new 0.1.1 May 22, 2025
0.1.0 May 22, 2025

#563 in Command line utilities

30 downloads per month

Apache-2.0 OR MIT

8KB
142 lines

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.

No runtime deps