Skip to content

Navigation Menu

Sign in
Sign up

Latest commit

History

21 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Pocket

Pocket API command-line client.

A utility for interacting with the Pocket API.

Installation

macOS (OSX)

$ curl -L https://github.com/ozbe/pocket-cli/releases/download/v1.0.0/pocket-macos -o pocket
$ chmod +x pocket
$ mv pocket /usr/local/bin

Ubuntu (Linux)

$ wget https://github.com/ozbe/pocket-cli/releases/download/v1.0.0/pocket-linux -o pocket
$ chmod +x pocket
$ mv pocket /usr/local/bin

Windows

Download the latest Windows release and place the executable in a folder that is in your $PATH.

Compile from Source

$ git clone git@github.com:ozbe/pocket-cli.git
$ cd pocket-cli
$ cargo build --release

The build output is ./target/release/pocket. Copy and execute that as you desire.

Usage

Run pocket with pocket -h or pocket --help to view the latest available flags, arguments, and commands.

pocket 1.0.0
Interact with the Pocket API
USAGE:
 pocket [OPTIONS] <SUBCOMMAND>
FLAGS:
 -h, --help Prints help information
 -V, --version Prints version information
OPTIONS:
 --access-token <access-token> Pocket access token [env: POCKET_ACCESS_TOKEN=]
 --consumer-key <consumer-key> Pocket consumer key [env: POCKET_CONSUMER_KEY=]
SUBCOMMANDS:
 add Add
 archive Archive
 auth Authenticate
 config Config
 delete Delete
 favorite Favorite
 get Get
 help Prints this message or the help of the given subcommand(s)
 readd Readd
 tag Tag
 tags-add Add tags
 tags-clear Clear tags
 tags-remove Remove tags
 tags-replace Replace tags
 unfavorite Unfavorite

Releases

Create Release

To create a new release, the only manual part of the process is creating and pushing a tag to GitHub. The following commands will create and push a tag. Before running the commands, be sure to update MAJOR, MINOR, and PATCH based on the current version and Semantic Version guidelines.

Create and Push Tag

$ git checkout master
$ git pull
$ export TAG=v$(awk -F'"' '/version/ {print 2ドル}' Cargo.toml)
$ git tag -a $TAG
# enter tag message
$ git push origin $TAG

After pushing a new tag, the Publish Workflow will create a corresponding GitHub Release and attach artifacts for each supported platform.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

About

Command-line interface to interact with Pocket API (https://getpocket.com)

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /