Library and CLI Utility to wait on the availability of resources such as Files, HTTP Servers, Ports & Sockets


Keywords
file, http, socket, wait, wait-on, wait-for-it, watcher
Licenses
MIT/Apache-2.0

Documentation

wait-on

Library and CLI Utility to wait on the availability of resources such as Files, HTTP Servers, Ports & Sockets

Crates.io Documentation Build Clippy Formatter

Installation

cargo install wait-on

Usage

Wait for a file to exist or exit with code 1 if 10m elapses waiting

wait-on -t 10m file /path/to/file

Wait for a HTTP Resource to respond

wait-on http GET https://example.com

Wait for a Socket to be available using TCP Protocol

wait-on tcp -i 127.0.0.1 -p 8080

License

This project is licensed under the MIT license and the Apache License 2.0.