w8

Crates.iow8
lib.rsw8
version0.1.0
sourcesrc
created_at2020-08-22 06:28:14.748368
updated_at2020-08-22 06:28:14.748368
descriptionunix utility for waiting on ports, http status, and more
homepagehttps://github.com/jzelinskie/w8
repositoryhttps://github.com/jzelinskie/w8
max_upload_size
id279397
size45,705
Jimmy Zelinskie (jzelinskie)

documentation

README

w8

So, you're writing some bash and you realize that before you can execute the next program, you need to wait until a port or HTTP endpoint becomes available. That's where w8 comes in.

Usage

# Waiting for a healthcheck to be up before using an API
$ w8 --http localhost:8080/v1/_healthz && curl localhost:8080/v1/data

# Wait for Postgres to be running before running a script for CI
$ w8 --tcp localhost:5432 && psql -c 'CREATE EXTENSION IF NOT EXISTS pg_trgm;'

# Mix and match! Is Deluge daemon, web UI, and the BitTorrent port ready?
$ w8 --tcp 192.168.1.100:58846 --http 192.168.1.100:8112 --tcp 192.168.1.100:8998

Installation

$ cargo install w8
Commit count: 10

cargo fmt