summaryrefslogtreecommitdiffstats
path: root/bin/pocket
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2016-05-29 00:51:36 -0400
committerJesse Luehrs <doy@tozt.net>2016-05-29 00:51:36 -0400
commitbbc2887a8efdf6323d0b4bf3d8bde6d17e8b4565 (patch)
tree1afd9fadc3c00154d001479105e17d0b7dc5a502 /bin/pocket
parent73914c7b31b2cb1b6617544a9eda92cf8387e9f6 (diff)
parente307a8443dede3013016167031720d53b527dd7a (diff)
downloadwww-pocket-bbc2887a8efdf6323d0b4bf3d8bde6d17e8b4565.tar.gz
www-pocket-bbc2887a8efdf6323d0b4bf3d8bde6d17e8b4565.zip
Merge pull request #1 from gaurav/develop
Improved usage
Diffstat (limited to 'bin/pocket')
-rw-r--r--bin/pocket25
1 files changed, 25 insertions, 0 deletions
diff --git a/bin/pocket b/bin/pocket
index b335ae1..f2e33d8 100644
--- a/bin/pocket
+++ b/bin/pocket
@@ -4,8 +4,32 @@ use warnings;
# PODNAME: pocket
# ABSTRACT: interact with the Pocket API from the command line
+=head1 NAME
+
+pocket - A command-line tool for Pocket (http://www.getpocket.com/)
+
=head1 SYNOPSIS
+pocket [command] [options ...]
+
+Commands:
+
+ help Displays this synopsis.
+ man Displays full documentation.
+ list Print all unread URLs in your account.
+ search <string> Print all URLs whose title or URL contains C<string>.
+ favorites Print all unread, favorite URLs.
+ add <url [title]> Add URL, optionally with title.
+ archive <url> Archive URL.
+ readd <url> Unread/unarchive URL.
+ favorite <url> Favorite URL.
+ delete <url> Delete URL.
+ words Print the number of words in all unread articles.
+ authenticate Authenticate and store credentials in C<~/.pocket>.
+ (all commands will do this automatically)
+
+Example usage:
+
$ pocket list
Enter your consumer key: ...
Visit https://getpocket.com/auth/authorize?request_token=...&redirect_uri=https://getpocket.com/ and log in. When you're done, press enter to continue.
@@ -13,6 +37,7 @@ use warnings;
http://the-toast.net/2015/04/27/looking-back-fragments-from-womens-shelters-1981-1996/view-all/
https://modelviewculture.com/pieces/dreaming-holding-onto-the-hope-of-justice-in-technology-and-america
[...]
+
$ pocket words --archive
2233913