Skip to content
goodmustachePublic

About

PipeCheck - View / Debug data between pipes

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

37 Commits

Folders and files

Repository files navigation

PipeCheck (pc) build-and-test

Pipecheck is a tool to help debug / test pipe'd commands on your terminal:

$ echo "foo\nbar\nbaz" | pc | xargs -n 1 echo -
==================================================================
 PipeCheck: The following was read in and will be passed through:
==================================================================
foo
bar
baz
===============================
 Proceed with this data (y/N):y
===============================
- foo
- bar
- baz

Note: When an n or any other key is provided, the command will terminate and send an empty buffer to the subsequent commands. IE the string of pipes do not terminate, but continue one with an empty buffer.

How to install

Currently the only way to install:

go install github.com/goodmustache/pc@latest

What's the difference between this and tee /dev/stderr?

Honestly? Not much - you get a pause to validate if you want things to continue. I don't know how much this helps others, but I found it useful.

About

PipeCheck - View / Debug data between pipes

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Used by

Contributors

Languages