/usr/lib/python3/dist-packages/tldr.py-0.7.0.egg-info/PKG-INFO is in tldr-py 0.7.0-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 | Metadata-Version: 1.1
Name: tldr.py
Version: 0.7.0
Summary: A python client for tldr: simplified and community-driven man pages.
Home-page: https://github.com/lord63/tldr.py
Author: lord63
Author-email: lord63.j@gmail.com
License: MIT
Description-Content-Type: UNKNOWN
Description: tldr.py
=======
|Latest Version| |Build Status| |Coverage Status| |Python Versions|
Yet another python client for
`tldr <https://github.com/tldr-pages/tldr>`__.
Intro
-----
tldr.py is a python client for
`tldr <https://github.com/tldr-pages/tldr>`__: simplified and
community-driven man pages. Instead of the long man pages:
.. figure:: https://cloud.githubusercontent.com/assets/5268051/10731428/5b5fd2fc-7c30-11e5-8cb1-4a3a24218ede.jpeg
:alt: tar-man-page
tldr will give you several simple yet powerful examples:
.. figure:: https://cloud.githubusercontent.com/assets/5268051/10731475/95df13fc-7c30-11e5-97d8-8090b6146208.jpeg
:alt: tar-tldr-page
The command examples are not good? Don't worry, you can set up your own
'tldr'! They are just markdown files and you can modify them at your
ease. Don't forget to Share them with the community!
One more thing, tldr is just a simple version for the man page, it's
**NOT** an alternative. Sometimes, you should read the man pages
patiently ;)
Features highlight
------------------
- use local file, fast.
- support custom the output color.
- support fetch the latest tldr pages.
- support rebuild the index.
Install
-------
::
$ (sudo) pip install tldr.py
Usage
-----
Initialize
~~~~~~~~~~
- firstly, 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
- then, init the configuration file, the default location for the
configuration file is your home directory, you can use the
``TLDR_CONFIG_DIR`` environment variable to point it to another
folder(e.g. $HOME/.config)
::
$ 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'])
- finally, build the index. Tldr.py will find the command via the
index.json. After a new fresh clone or when you add some new pages,
remember to rebuild the index.
::
$ tldr reindex
Rebuild the index.
Use tldr
~~~~~~~~
look for a command usage:
::
$ tldr find {{command}}
check for updates(so that we can get the latest man pages):
::
$ tldr update
rebuild the index.json after you add some new pages:
::
$ tldr reindex
locate the command man page:
::
$ tldr locate {{command}}
Or you can use ``tldr --help`` to get the help message.
FAQ
---
Q: I want to add some custom command usages to a command, how to do
it?
A: Find the location of the command page; add the command usages; done.
Q: I want to add some custom command pages, how?
A: Add the comand pages to the right folder(e.g. /tldrrepo/pages/linux);
rebuild the index; done.
Q: I don't like the default color theme, how to change it?
A: Edit the tldr configuration file at ``~/.tldrrc``; modify the color
until you're happy with it.
Q: I faided to update the tldr pages, why?
A: Actually, ``tldr.py`` just tries to pull the latest tldr pages for
you, no magic behinds it. So the reason why you faided to update is that
``tldr.py`` failed to pull the latest upstream, check the failing output
and you may know the reason, e.g. you make some changes and haven't
commit them yet. You can pull the pages by hand so you can have a better
control on it.
Q: Why use the git repo instead of the assets packaged by the
official?
A: In fact, you can use the offical assets if you want, download the
assets and extract it somewhere, but ``tldr.py`` don't support update it
using ``tldr update``.
Use a git repo, you can:
- do the version control, yeah, use git.
- better for customization, just edit the pages and add new pages, they
belongs to you. You can even maintain your own 'tldr'. If use the
official assets, you'll always get the latest pages.
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.
.. |Latest Version| image:: http://img.shields.io/pypi/v/tldr.py.svg
:target: https://pypi.python.org/pypi/tldr.py
.. |Build Status| image:: https://travis-ci.org/lord63/tldr.py.svg
:target: https://travis-ci.org/lord63/tldr.py
.. |Coverage Status| image:: https://codecov.io/github/lord63/tldr.py/coverage.svg?branch=master
:target: https://codecov.io/github/lord63/tldr.py?branch=master
.. |Python Versions| image:: https://img.shields.io/pypi/pyversions/tldr.py.svg
Keywords: tldr cli man command usage
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Operating System :: POSIX
Classifier: Operating System :: POSIX :: Linux
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
|