Skip to content

aca/pipetest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

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

#!/usr/bin/env fish
if test (echo -n 1) = 1; echo "true"; end

Test like

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

About

test command line output with pipe

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages