delayr (0.1.1)

Published 2024-07-27 15:59:01 +02:00 by HorlogeSkynet in HorlogeSkynet/delayr

Installation

[registry]
default = "gitea"

[registries.gitea]
index = "sparse+" # Sparse index
# index = "" # Git

[net]
git-fetch-with-cli = true
cargo add delayr@0.1.1

About this package

A Rust UNIX system tool that randomly delays another program execution

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

Dependencies

ID Version
clap ^3.2.25
env_logger ^0.11.5
log ^0.4.17
rand ^0.8.5
Details
Cargo
2024-07-27 15:59:01 +02:00
24
Samuel FORESTIER <samuel+dev@forestier.app>
MIT
6.6 KiB
Assets (1)
Versions (1) View all
0.1.1 2024-07-27