pc

command module
v0.0.3-pre Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2022 License: MIT Imports: 3 Imported by: 0

README

pc

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.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL