Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/3axap4ehko/wait-cli
zero dependency commandline tool to orchestrate execution
https://github.com/3axap4ehko/wait-cli
command-line nodejs npm wait
Last synced: 18 days ago
JSON representation
zero dependency commandline tool to orchestrate execution
- Host: GitHub
- URL: https://github.com/3axap4ehko/wait-cli
- Owner: 3axap4eHko
- Created: 2017-02-08T17:09:08.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-15T21:36:54.000Z (almost 7 years ago)
- Last Synced: 2024-09-21T11:57:07.938Z (about 2 months ago)
- Topics: command-line, nodejs, npm, wait
- Language: JavaScript
- Homepage:
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Wait CLI
zero dependency commandline tool to orchestrate execution
## Installing
``` bash
$ npm install -g wait-cli
```## Usage
``` bash
$ await [options] <...arguments>
```
### tcp
Awaiting tcp connection(s) to specified addressesOptions:
- `-s, --sequenced` - Next connection waits for complete previous connection
- `--not` - Condition negation flagExample: `await tcp google.com:443`
### cmd
Awaiting finishing command executionOptions:
- `-r, --retry` - retry on non zero exit code of command
- `-s, --sequenced` - next command waits for complete previous command
- `--not` - Condition negation flagExample: `await cmd "curl -sL https://my-domain.never/app-setup.sh | bash -" "app run" --retry --sequenced`
### exists
Awaiting existing specified pathOptions:
- `-s, --sequenced` - next existing check waits for complete previous existing check
- `-m, --mode` - access mode of path r-read, w-write, e-execute
- `--not` - Condition negation flagExample: `await exists "/var/database.pid" "/var/application.pid" --sequenced --mode r`
### network
Awaiting for network adapterOptions:
- `-m, --mac ` - specify mac address mask
- `-i, --internal` - network adapter should be internal
- `--not` - Condition negation flagExample: `await network vmnet --mac 00:* --internal`
### time
Awaiting for specified secondsExample: `await time 20`
## More Await Examples
- MongoDB - `await tcp localhost:27017`
- MySQL - `await tcp localhost:3306`
- MSSQL - `await tcp localhost:1433`
- HTTP - `await tcp localhost`
- HTTPS - `await tcp localhost:443`
- Memcache - `await tcp localhost:11211`
- Stopping MSSQL - `await tcp --not localhost:1433`
- Downloading complete (even with errors) - `await cmd "wget https://mydomain.com/superscript.sh"`
- Downloading complete (retry on fail) - `await cmd "wget https://mydomain.com/superscript.sh" --retry`
- Script execution complete - `await cmd "sh superscript.sh"`
- Downloading complete and success script execution - `await cmd "wget https://mydomain.com/superscript.sh" "sh superscript.sh" --sequenced`
- 20 Seconds - `await time 20`## License
[The MIT License](http://opensource.org/licenses/MIT)
Copyright (c) 2017-present Ivan Zakharchenko