Skip to main content

Command-line TLDR client that displays tldr-pages as manpages

Reason this release was yanked:

Broken package name.

Project description

tldr-man-client

A tldr-pages client that works just like man

tldr-man-client is a command-line client for tldr-pages, a collection of community-maintained help pages for command-line tools. It differs from other clients because it displays its pages as man pages.

This client is also able to integrate with the man command to fall back to displaying a tldr-page for a command when no manpage exists.

Features:

  • Fully abides by the tldr-pages client specification.
  • Supports all page languages, not just English pages.
  • Displays tldr-pages in the same style as manpages.
  • Integrates with man to provide a fallback for missing manpages.
  • Supports rendering markdown formatted tldr-pages with --render.
  • Local cache abides by the XDG base directory specification.
  • And much more!

Installation

With Pip

Install tldr-man-client with pip (version 3.10+):

pip install tldr-man

tldr-man-client additionally depends on pandoc being installed.

After installation, you can view a tldr-page with the tldr command.

Usage

Display a tldr-page for a command:

tldr <COMMAND>

Update the local page cache:

tldr --update

Render a page locally:

tldr --render path/to/page.md

Print tldr manpage paths as a colon-separated list (see the Manpage Integration section):

tldr --manpath

Display usage information:

tldr --help

Setting languages

As specified by the tldr-pages client specification, tldr-pages from other languages can be displayed by this client (falling back to English if the page doesn't exist for that language).

To do so, set any of the environment variables $LANG, $LANGUAGE, or $TLDR_LANGUAGE to the two-letter language code for your language (e.g. export LANGUAGE=es), or set the --language option when running tldr (e.g. tldr <COMMAND> --language es).

Setting platforms

By default, tldr-pages will be displayed based on your current platform. To directly specify what platform's page to use, use the --platform flag.

For example, to display the macOS version of the top command's tldr-page, run tldr top --platform macos. This is the default behavior on macOS, but --platform macos is required to show the macOS version of this page on other platforms.

Manpage Integration

The command man can be set up to fall back to displaying tldr-pages if no manpages are found.

To do so, add the provided line to your shell's startup script (e.g. ~/.bash_profile, ~/.zshenv, ~/.config/fish/config.fish) to add this behavior to man:

Bash and Zsh

export MANPATH="$MANPATH:$(tldr --manpath)"

Fish

set -gxa MANPATH (tldr --manpath)

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-man-1.0.0.tar.gz (14.0 kB view details)

Uploaded Source

Built Distribution

tldr_man-1.0.0-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

Details for the file tldr-man-1.0.0.tar.gz.

File metadata

  • Download URL: tldr-man-1.0.0.tar.gz
  • Upload date:
  • Size: 14.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.14 CPython/3.10.5 Darwin/21.5.0

File hashes

Hashes for tldr-man-1.0.0.tar.gz
Algorithm Hash digest
SHA256 8b4a761cad5fb6166b2ea627ccdc768e25d230ce2304e9b403d190957acabeb1
MD5 4696d630d4e6bbf943724912537e9644
BLAKE2b-256 d7239c6a2a0e0ca20a54c0df4a430291db626dc8fe25c6c5214022171771e179

See more details on using hashes here.

Provenance

File details

Details for the file tldr_man-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: tldr_man-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 15.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.14 CPython/3.10.5 Darwin/21.5.0

File hashes

Hashes for tldr_man-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bae620ab330a0a809513bbb2c5ec79cb3bd881a99c8a68864aae1ef4a82f1e67
MD5 a6aa82cdf762e62b3e9aaf0d120fb487
BLAKE2b-256 1684b38805ebdd6f8be887be851d98f34971a89f325352168ba6ac5a0a7ee854

See more details on using hashes here.

Provenance

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