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
File details
Details for the file tldr.py-0.1.0.tar.gz
.
File metadata
- Download URL: tldr.py-0.1.0.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
a86ca519693eea867339a0da97444c5872d1bb766501ce4e778f862b36ed90ae
|
|
MD5 |
fa65fdae32d57832997bb33375e38255
|
|
BLAKE2b-256 |
538e9f680bdfd23d8a25a6c1780ad6499f1be39f701f55b38851b8a0fc9a399f
|