An open API service indexing awesome lists of open source software.

https://github.com/aca/pipetest

test command line output with pipe
https://github.com/aca/pipetest

Last synced: 6 months ago
JSON representation

test command line output with pipe

Awesome Lists containing this project

README

          

# pipetest

Small script to test command line output with pipe.
Soak up standard input and test output.

Supports
- Operators for text strings: "=/==", "!="
- Operators to compare and examine numbers: "-eq", "-ne", "-gt", "-ge", "-lt", "-le"

---

For example, Instead of
```sh
#!/usr/bin/env fish
if test (echo -n 1) = 1; echo "true"; end
```

Test like
```sh
#!/usr/bin/env fish
if echo -n 1 | pipetest = 1; echo "true"; end
```