Giter Site home page Giter Site logo

waitz's Introduction

Waitz

A rust utility to wait that a program exits with 0.

You need to wait for something to start up and don't know when it finishes? You want to chain some other commands after it? You want to run a bunch of commands and drink a coffee? Than this is a tool for you.

I initially wrote it to start docker and run some processes after it, but you can do way more with it, like waiting for a specific URL to become available after booting up a server in the background or anything else.

  • waitz docker ps && npm run <script> && npm run <other-script>
  • waitz 'curl --fail <non-existing-url>' && ./script.sh

Usage

waitz 0.2.0
Max Strübing <[email protected]>
Waits until the exit code of a program is zero

USAGE:
    waitz [FLAGS] [OPTIONS] <COMMAND>...

FLAGS:
        --debug       Outputs debug information
    -h, --help        Prints help information
    -n, --no-retry    Don't try to rerun the command in case it fails with non-zero exit code
    -V, --version     Prints version information
        --verbose     Outputs verbose information

OPTIONS:
    -i, --interval <interval>    in which interval the command should be retried in milliseconds [default: 1000]

ARGS:
    <COMMAND>...    Which command should be waited for

Installation

Crates.io

cargo install waitz

Raw

Clone the repository and run cargo build --release and you should find the binary in ./target/release/waitz.

Release Page

Or grab a binary from the release page

Contribution

  • Fork this project
  • Create a branch
  • Provide a pull request

The CI will lint your commit message with commitlint.

waitz's People

Contributors

mstruebing avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.