qrcp icon indicating copy to clipboard operation
qrcp copied to clipboard

Print messages to stderr when output is piped

Open 0WN463 opened this issue 4 months ago • 0 comments

Depends on #339

When qrcp sees that the output is piped, it will now print its messages to stderr instead of stdout, to allow easy piping of output.

# saves file with the file path of ./piped_file
./qrcp receive  --file - > piped_file

# sends received data to clipboard manager
./qrcp receive  --file - | $CLIPBOARD_MANAGER

0WN463 avatar Oct 05 '24 03:10 0WN463