A very fast implementation of tldr in Rust. https://tealdeer-rs.github.io/tealdeer/
  • Rust 94.5%
  • Dockerfile 3.7%
  • Shell 1.8%
Find a file
2018-02-11 01:52:16 +01:00
.circleci Switch to CircleCI 2017-12-23 01:51:16 +01:00
src Update dependencies 2018-02-11 01:44:03 +01:00
tests Fix integration tests 2017-12-23 00:03:35 +01: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
bash_tealdeer Add bash completion (#34) 2018-02-11 00:53:55 +01:00
Cargo.lock Version bump to 1.0.0 2018-02-11 01:52:16 +01:00
Cargo.toml Version bump to 1.0.0 2018-02-11 01:52:16 +01:00
CHANGELOG.md Version bump to 1.0.0 2018-02-11 01:52:16 +01:00
deer.png Rename project (#26) 2016-04-16 10:20:16 +02:00
deer.svg Rename project (#26) 2016-04-16 10:20:16 +02:00
LICENSE-APACHE License under MIT/Apache-2.0 2016-01-27 17:48:43 +01:00
LICENSE-MIT Bump copyright year 2018-02-11 00:58:53 +01:00
README.md Fix autocomplete instructions 2018-02-11 01:10:21 +01:00
screenshot.png Resize screenshot 2016-11-26 12:40:16 +01:00

tealdeer

teal deer

Circle CI Crates.io

An implementation of tldr in Rust: Simplified, example based and community-driven man pages.

screenshot

If you pronounce "tldr" in English, it sounds somewhat like "tealdeer". Hence the project name :)

Goals

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 via cargo...

$ cargo install tealdeer

...or 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 tealdeer-git

Bash Autocompletion

To get bash autocompletion, simply rename the file bash_tealdeer to tldr and copy it to /usr/share/bash-completion/completions/tldr.

Building

tealdeer requires at least Rust 1.19.

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.

Thanks to @SShrike for coming up with the name "tealdeer"!