Skip to main content

A python client for tldr: simplified and community-driven man pages.

Project description

Latest Version Build Status Coverage Status Python Versions

Yet another python client for tldr.

Install

$ (sudo) pip install tldr.py

Usage

Initialize

  1. clone the tldr repo to somewhere(e.g. ~/code/tldr). We will use it when we look for a command usage.

    $ cd ~/code
    $ git clone git@github.com:tldr-pages/tldr.git
  2. init the configuration file.

    $ tldr init
    Input the tldr repo path(absolute path): (e.g. /home/lord63/code/tldr/)
    Input your platform(linux, osx or sunos): (e.g. linux)
    Initializing the config file at ~/.tldrrc

and you configuration file should look like this:

colors:
   command: cyan
   description: blue
   usage: green
platform: linux
repo_directory: /home/lord63/code/tldr

Don’t worry about the colors option, it is for the output when you look for a command, you can custom it by yourself.(Note that the color should be in [‘black’, ‘red’, ‘green’, ‘yellow’, ‘blue’, ‘magenta’, ‘cyan’, ‘white’])

Use tldr

look for a command usage:

$ tldr find {{command}}

check for updates(so that we can get the latest man pages):

$ tldr update

Or you can use tldr --help to get the help message.

Contributing

  • It sucks? Why not help me improve it? Let me know the bad things.

  • Want a new feature? Feel free to file an issue for a feature request.

  • Find a bug? Open an issue please, or it’s better if you can send me a pull request.

Contributions are always welcome at any time! :sparkles: :cake: :sparkles:

License

MIT.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tldr.py-0.2.0.tar.gz (5.1 kB view hashes)

Uploaded Source

Built Distribution

tldr.py-0.2.0-py2.py3-none-any.whl (7.4 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page