| Crates.io | ready-set-go |
| lib.rs | ready-set-go |
| version | 0.1.1 |
| created_at | 2025-05-22 11:55:59.551083+00 |
| updated_at | 2025-05-22 12:55:22.166372+00 |
| description | Run a command after a countdown |
| homepage | https://github.com/yshui/ready-set-go |
| repository | https://github.com/yshui/ready-set-go |
| max_upload_size | |
| id | 1685050 |
| size | 7,417 |
Simple utility to give you a countdown before running a command. Useful for preventing running unwanted commands by mistake.
rustc rsg.rs
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.