guard-cli

1.0.0 • Public • Published

Overview

Build Status

This package simplifies busy-wait synchronization in the terminal.

Installation

Install with npm:

npm install --global guard-cli

Usage

Provide a predicate and a payload:

guard ping -c1 google.com && espeak "Attention: the internet is back. This is not a drill"
guard test -e download.tar.gz && dtrx download.tar.gz

For the opposite of guard, i.e. a command that blocks until condition is not met, use nguard:

nguard test -e trash && echo Directory removed, deletion complete!

Credits

The original (Bash) implementation came from @hershal. Kudos

/guard-cli/

    Package Sidebar

    Install

    npm i guard-cli

    Weekly Downloads

    10

    Version

    1.0.0

    License

    BSD-3-Clause

    Unpacked Size

    6.42 kB

    Total Files

    8

    Last publish

    Collaborators

    • hamroctopus