1.0.0 • Published 4 years ago

guard-cli v1.0.0

Weekly downloads
1
License
BSD-3-Clause
Repository
github
Last release
4 years ago

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

1.0.0

4 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago