hoop33 / wry

App.net command-line client for Mac OS X
http://grailbox.com/wry
MIT License
43 stars 6 forks source link

reads post text from stdin when no params #46

Closed jeremy-w closed 11 years ago

jeremy-w commented 11 years ago

[fixes #43]

Example:

wry% wry help post
usage: wry post [<text>]
(omit text to read from stdin)

Creates a new post with the text you specify. If supplying text as command-
line arguments, note that the shell's parsing rules are respected, so escape
your text appropriately. Quotes are optional.

Alternatively, supply no arguments and the post body will be read from stdin.
Enter EOF (^D) to end the post. This lets you avoid all shell quoting, as
well as create posts by piping input from other commands.
wry% wry post 
Testing having wry read post content from stdin.

This is one way out of shell-quote-hell!
Jeremy W. Sherman (@jws) (100550) == You
Testing having wry read post content from stdin.

This is one way out of shell-quote-hell!
ID: 6140932 -- 2013-05-29T03:11:05Z
----------

You can read that post to this very day. :)