in-cli

Crates.ioin-cli
lib.rsin-cli
version0.2.0
created_at2025-12-21 10:26:03.532277+00
updated_at2025-12-21 10:30:50.454483+00
descriptionRun any command after a specified delay
homepage
repositoryhttps://github.com/haardikk21/in-cli
max_upload_size
id1997804
size22,600
Haardik (haardikk21)

documentation

README

in

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.

Installation

cargo install in-cli

Or build from source:

git clone https://github.com/haardikk21/in-cli
cd in-cli
cargo install --path .

Usage

in <DURATION> <COMMAND>...

Duration formats

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

Examples

# 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 for task running.

just lint    # Run fmt check + clippy
just fmt     # Format code
just build   # Build release binary
just clean   # Clean build artifacts

License

MIT

Commit count: 0

cargo fmt