ctry

Crates.ioctry
lib.rsctry
version1.1.4
created_at2025-10-10 06:08:08.478315+00
updated_at2026-01-10 10:47:11.344699+00
descriptionRetry CLI commands
homepage
repositoryhttps://github.com/pepa65/ctry
max_upload_size
id1876561
size12,774
pepa65 (pepa65)

documentation

https://docs.rs/ctry/

README

ctry 1.1.4

Retry CLI commands

# Stop retrying after 10 tries
retry --max 10 -- curl -I https://unstable.site

# Stop retrying after 10 tries and wait 5 seconds between the each try
retry --max 10 --interval 5 -- curl -I https://unstable.site

# Stop retrying if exit code is 1
retry --exitcode 1 -- curl -I https://unstable.site

# Suppress stdout and stderr from the command
retry --quiet -- curl -I https://unstable.site

Installation

cargo-binstall ctry

Usage

ctry 1.0.1
Retry CLI commands

USAGE:
    ctry [FLAGS] [OPTIONS] [--] <COMMAND>...

FLAGS:
    -h, --help       Prints help information
    -q, --quiet      Suppress output of the command
    -V, --version    Prints version information

OPTIONS:
    -e, --exitcode <EXIT_CODE>    On which exit code retries will stop [default: 0]
    -i, --interval <INTERVAL>     Interval in seconds between the retries [default: 1]
    -m, --max <MAX_RETRIES>       Maximum retries, use 0 for unlimited retries [default: 5]

ARGS:
    <COMMAND>...    Command to run
Commit count: 26

cargo fmt