2 releases

0.1.1 Mar 8, 2019
0.1.0 Mar 8, 2019

#30 in #preview

MIT license

10KB
236 lines

LeanPub Commandline Tool

Introduction

This is a CLI for leanpub.com. It calls the LeanPub API to generate preview files and download them to the current directory.

Installation

  • Install Rust
  • Clone this repo
  • run cargo build --release. The binary will be in target/release/leanpub-cli.

TODO: Make binary release for non-developers.

Usage

The following arguments are supported:

  • --api_key: LeanPub API key
  • --slug: LeanPub book slug
  • --gen_type or -t: subset or full

Contributing

Please feel free to submit issues or pull requests.

Dependencies

~24MB
~515K SLoC