A Rust UNIX system tool that randomly delays another program execution https://git.forestier.app/HorlogeSkynet/delayr
Go to file
Samuel FORESTIER 8189010f8a Updates Cargo author metadata 2023-11-01 19:48:06 +01:00
src Minor improvements 2023-05-13 16:01:50 +02:00
.gitignore Initial commit 2022-06-02 21:43:21 +02:00
Cargo.lock Bumps dependencies 2023-05-13 16:02:03 +02:00
Cargo.toml Updates Cargo author metadata 2023-11-01 19:48:06 +01:00
LICENSE Updates LICENSE copyright as of 2023 2023-05-13 16:04:04 +02:00
README.md Prefers `cargo fmt` over `rustfmt` direct usage 2022-06-15 20:34:57 +02:00

README.md

delayr

A Rust UNIX system tool that randomly delays another program execution

Build

cargo build

Usage

delayr --help

Examples

# Sleep between 1 second and 1 hour before executing
delayr 3600 -- certbot renew -n -q

# Sleep between 30 seconds and 60 seconds before executing, with informational logs
delayr -v -m 30 60 -- borg create [...]

# Sleep 10 seconds before exiting, with debugging logs
delayr -d -m 10 10

Contributing

Code format

rustup component add rustfmt
cargo fmt

Code analysis

rustup component add clippy
cargo clippy