| Crates.io | in-cli |
| lib.rs | in-cli |
| version | 0.2.0 |
| created_at | 2025-12-21 10:26:03.532277+00 |
| updated_at | 2025-12-21 10:30:50.454483+00 |
| description | Run any command after a specified delay |
| homepage | |
| repository | https://github.com/haardikk21/in-cli |
| max_upload_size | |
| id | 1997804 |
| size | 22,600 |
A minimal CLI tool to run any command after a specified delay.
in 20m docker compose up -d
Displays a clean countdown TUI while waiting, then executes your command.
cargo install in-cli
Or build from source:
git clone https://github.com/haardikk21/in-cli
cd in-cli
cargo install --path .
in <DURATION> <COMMAND>...
Uses humantime for flexible duration parsing:
| Format | Duration |
|---|---|
30s |
30 seconds |
5m |
5 minutes |
1h |
1 hour |
1h30m |
1 hour 30 minutes |
2h30m45s |
2 hours 30 minutes 45 seconds |
# Restart services in 10 minutes
in 10m docker compose restart
# Run a backup in 2 hours
in 2h ./backup.sh
# Quick 30 second delay
in 30s echo "Time's up!"
# Deploy after lunch
in 1h30m kubectl apply -f deployment.yaml
Press Ctrl+C at any time to cancel. The command will not run and the tool exits with code 130.
Requires just for task running.
just lint # Run fmt check + clippy
just fmt # Format code
just build # Build release binary
just clean # Clean build artifacts
MIT