Hacker News new | ask | show | jobs
by nine_k 3139 days ago
Nope, it sends stdout to sheets. Getting input from sheets would be cool, too.
3 comments

Consider the command:

    tosheets --spreadsheet=ABC <myfile.txt
In this example, stdin is what goes to the spreadsheet. stdout is (I assume) nothing.
It looks to me like you're being downvoted, but what you're saying looks correct to me. $PROGRAM sends to stdout what google sheets reads from "stdin"
When you run this utility, it forwards stdin to Google Sheets.

Should you pipeline stdout from somewhere else to this utility, the contents of that stdout will be forwarded to Google Sheets.

It is correct to say either that you are forwarding stdin or that you are forwarding stdout. It is therefore not correct to say that it does not forward stdin, because the source code explicitly refers to stdin. That's likely the reason for the [Fight Club]s the GP is receiving.

From the HN guidelines:

Please don't comment about the voting on comments. It never does any good, and it makes boring reading.