ryoakg / tealdeer

An implementation of tldr in Rust.

Home Page:https://github.com/tldr-pages/tldr

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tealdeer

teal deer

Travis CI Coveralls Crates.io

An implementation of tldr in Rust.

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

Building

tealdeer requires at least Rust 1.6.

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"!

About

An implementation of tldr in Rust.

https://github.com/tldr-pages/tldr

License:Apache License 2.0


Languages

Language:Rust 100.0%