| Crates.io | attempt-cli |
| lib.rs | attempt-cli |
| version | 1.1.0 |
| created_at | 2024-05-05 05:11:22.866307+00 |
| updated_at | 2025-09-10 02:50:42.511964+00 |
| description | A CLI for retrying fallible commands |
| homepage | https://github.com/MaxBondABE/attempt |
| repository | https://github.com/MaxBondABE/attempt |
| max_upload_size | |
| id | 1230037 |
| size | 159,405 |
attempt allows you to retry fallible commands with a delay.
attempt [BACKOFF] [OPTIONS] [COMMAND]...
# Rerun database migrations if the server was not ready
attempt --retry-if-contains "server not ready" sqlx migrate
# Use an exponential backoff
attempt exponential --retry-if-contains "server not ready" sqlx migrate
attempt --help for quick access to documentation
attempt exponential --helpattempt assumes that the child command's output will be UTF-8 encoded.
If any output predicates are used on a program that outputs invalid
UTF-8, attempt will crash.attempt --help will not reflect that the fixed strategy will be used if
no strategy is specified.cargo install attempt-cli