From 85b370291da9fc44a1d2f3acac3e648b7c8bda06 Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Thu, 3 Sep 2020 09:42:56 -0700 Subject: [PATCH] update readme about sending text Fixes #233 --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index ac18ce44..0b2d7df9 100644 --- a/README.md +++ b/README.md @@ -119,6 +119,17 @@ $ croc --yes [code-phrase] > out All of the other text printed to the console is going to `stderr` so it will not interfere with the message going to `stdout`. + +### Send text + +Sometimes you want to send URLs or short text. In addition to piping, you can easily send text with `croc`: + +``` +$ croc send --text "hello world" +``` + +This will automatically tell the receiver to use `stdout` when they receive the text so it will be displayed. + ### Self-host relay The relay is needed to staple the parallel incoming and outgoing connections. By default, `croc` uses a public relay but you can also run your own relay: