A python client for tldr: simplified and community-driven man pages.
Project description
Yet another python client for tldr.
Install
$ (sudo) pip install tldr.py
Usage
Initialize
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
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for tldr.py-0.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12e09b711eeb953f92a28a41d075370eab3f45d5bc3413509d1d585262ec77c0 |
|
MD5 | 9b10e562ba6fc495f01042950211ce44 |
|
BLAKE2b-256 | af9e0b839b200f966ca8199bab88f34fa3dbd267f662b565c7c069c007f6344c |