1
0
Fork
You've already forked repeat
0
A CLI tool to repeat commands with a delay
  • Rust 81.3%
  • Just 18.7%
2026年06月07日 07:21:00 +00:00
.crow ci: set up CI pipeline and test infrastructure 2026年06月06日 10:59:47 +00:00
src feat: add --version flag with git hash 2026年06月07日 07:12:21 +00:00
.gitignore ci: set up CI pipeline and test infrastructure 2026年06月06日 10:59:47 +00:00
build.rs feat: add --version flag with git hash 2026年06月07日 07:12:21 +00:00
cairn.toml chore: add CHANGELOG.md and cairn.toml for release management 2026年06月06日 21:08:57 +00:00
Cargo.lock chore: bump version to 0.1.3 2026年06月07日 07:21:00 +00:00
Cargo.toml chore: bump version to 0.1.3 2026年06月07日 07:21:00 +00:00
CHANGELOG.md chore: bump version to 0.1.3 2026年06月07日 07:21:00 +00:00
justfile ci: set up CI pipeline and test infrastructure 2026年06月06日 10:59:47 +00:00
LICENSE chore: add LICENSE, README, and update repository metadata 2026年06月07日 06:33:18 +00:00
README.md chore: add LICENSE, README, and update repository metadata 2026年06月07日 06:33:18 +00:00
rustfmt.toml chore: add rustfmt.toml and apply import formatting 2026年06月06日 21:11:17 +00:00

repeat-cli

A CLI tool to repeatedly run a command with a delay between executions.

Installation

cargo install repeat-cli

Usage

repeat [OPTIONS] -- <COMMAND>...

Options

Option Environment Variable Description
--delay-secs <N> REPEAT_DELAY_SECS Delay in seconds (stacks with --delay-mins)
--delay-mins <N> REPEAT_DELAY_MINS Delay in minutes (stacks with --delay-secs)
--until-success UNTIL_SUCCESS Stop when command exits 0
--until-failure UNTIL_FAILURE Stop when command exits non-zero
--until-exit-code <N> UNTIL_EXIT_CODE Stop when command exits with specific code
--count <N> Maximum iterations
--no-countdown NO_COUNTDOWN Hide countdown display
--no-progress NO_PROGRESS Hide progress bar

Default delay is 30 seconds if not specified.

Examples

# Run a health check every minute until it succeeds
repeat --delay-mins 1 --until-success -- curl -f http://localhost:8080/health
# Run a flaky test 10 times with 5 second delay
repeat --delay-secs 5 --count 10 -- cargo test
# Poll until a process exits
repeat --delay-secs 2 --until-failure -- pgrep myprocess

Press Ctrl+C to stop early.

License

MIT