maxcnunes / waitforit

Wait until an address become available.
MIT License
172 stars 26 forks source link

Implement waitingfor #23

Open santiagocanti opened 6 years ago

santiagocanti commented 6 years ago

Added the option -waitingFor which is going to show only the hosts waitforit is waiting for.

The debug option was too much verbose and I found this solution to be a middle ground between having no information at all or having too much.

It looks like this: image

I'm new to go so if there is something horrible done, please forgive me :) Also, I tried running the tests for quite a while (running inside a docker container) but wasn't able to, not sure if I could get some help with that.

Thanks for this awesome utility!

coveralls commented 6 years ago

Pull Request Test Coverage Report for Build 58


Changes Missing Coverage Covered Lines Changed/Added Lines %
main.go 0 2 0.0%
network.go 38 67 56.72%
<!-- Total: 38 69 55.07% -->
Files with Coverage Reduction New Missed Lines %
network.go 1 75.61%
<!-- Total: 1 -->
Totals Coverage Status
Change from base Build 54: -0.6%
Covered Lines: 132
Relevant Lines: 272

💛 - Coveralls
maxcnunes commented 6 years ago

hey @santiagocanti great idea. I will review it once I have some free time. Thanks!!