An open API service indexing awesome lists of open source software.

https://github.com/leoborai/wait-on

Utility to wait on the availability of resources such as Files, HTTP Servers, Ports & Sockets
https://github.com/leoborai/wait-on

file http socket wait wait-for-it wait-on watcher

Last synced: 12 days ago
JSON representation

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

Awesome Lists containing this project

README

        


wait-on



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


[![Crates.io](https://img.shields.io/crates/v/wait-on.svg)](https://crates.io/crates/wait-on)
[![Documentation](https://docs.rs/wait-on/badge.svg)](https://docs.rs/wait-on)
![Build](https://github.com/EstebanBorai/wait-on/workflows/build/badge.svg)
![Clippy](https://github.com/EstebanBorai/wait-on/workflows/clippy/badge.svg)
![Formatter](https://github.com/EstebanBorai/wait-on/workflows/fmt/badge.svg)

## Installation

```bash
cargo install wait-on
```

## Usage

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

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

### Wait for a HTTP Resource to respond

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

### Wait for a Socket to be available using TCP Protocol

```bash
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.