Skip to content

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

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

ozbe/pocket-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published

Languages