# in
A minimal CLI tool to run any command after a specified delay.
```bash
in 20m docker compose up -d
```
Displays a clean countdown TUI while waiting, then executes your command.
## Installation
```bash
cargo install in-cli
```
Or build from source:
```bash
git clone https://github.com/haardikk21/in-cli
cd in-cli
cargo install --path .
```
## Usage
```bash
in <DURATION> <COMMAND>...
```
### Duration formats
Uses [humantime](https://docs.rs/humantime) for flexible duration parsing:
| `30s` | 30 seconds |
| `5m` | 5 minutes |
| `1h` | 1 hour |
| `1h30m` | 1 hour 30 minutes |
| `2h30m45s` | 2 hours 30 minutes 45 seconds |
### Examples
```bash
# 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
```
### Cancellation
Press `Ctrl+C` at any time to cancel. The command will not run and the tool exits with code 130.
## Development
Requires [just](https://github.com/casey/just) for task running.
```bash
just lint # Run fmt check + clippy
just fmt # Format code
just build # Build release binary
just clean # Clean build artifacts
```
## License
MIT