A very fast implementation of tldr in Rust. https://tealdeer-rs.github.io/tealdeer/
  • Rust 98.1%
  • Shell 1.9%
Find a file
Danilo Bargen f68df11b99 Fix creation of cache dir
Resolves #22.
2016-04-04 00:21:49 +02:00
src Fix creation of cache dir 2016-04-04 00:21:49 +02:00
tests Add first integration tests 2016-04-03 23:59:15 +02:00
.editorconfig Add .editorconfig 2016-01-27 17:48:43 +01:00
.gitignore Fix code formatting and update .gitignore 2016-04-03 00:25:06 +02:00
.travis.yml Add OSX to TravisCI 2016-01-28 17:13:51 +01:00
Cargo.lock Add first integration tests 2016-04-03 23:59:15 +02:00
Cargo.toml Add first integration tests 2016-04-03 23:59:15 +02:00
LICENSE-APACHE License under MIT/Apache-2.0 2016-01-27 17:48:43 +01:00
LICENSE-MIT License under MIT/Apache-2.0 2016-01-27 17:48:43 +01:00
README.md Update README: Add usage and install instructions 2016-01-27 22:09:46 +01:00

tldr-rs

Build status

An implementation of tldr in Rust.

High level project goals:

  • Download and cache pages
  • Don't require a network connection for anything besides updating the cache
  • Command line interface similar or equivalent to the NodeJS client
  • Be fast

Usage:

tldr [options] <command>
tldr [options]

Options:

    -h --help           Show this screen
    -v --version        Show version information
    -l --list           List all commands in the cache
    -f --render <file>  Render a specific markdown file
    -o --os <type>      Override the operating system [linux, osx, sunos]
    -u --update         Update the local cache
    -c --clear-cache    Clear the local cache

Examples:

    $ tldr tar
    $ tldr --list

To control the cache:

    $ tldr --update
    $ tldr --clear-cache

To render a local file (for testing):

    $ tldr --render /path/to/file.md

Installing

Build and install the tool from source (see section "Building" in this README).

If you're an Arch Linux user, you can also install the package from the AUR:

$ yaourt -S tldr-rs-git

Building

tldr-rs requires at least Rust 1.5.

Debug build with logging enabled:

$ cargo build --features logging

Release build without logging:

$ cargo build --release

To enable the log output, set the RUST_LOG env variable:

$ export RUST_LOG=tldr=debug

License

Licensed under either of

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.