Yet another tldr client. Written mostly as an exercise to try Zig. The client doesn't maintain a local database of tldr pages but rather embeds all of them in the binary.
![image](https://private-user-images.githubusercontent.com/20820/247701411-d40ee21a-2429-408f-9e96-26157beca855.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU0Mjg0MzksIm5iZiI6MTcyNTQyODEzOSwicGF0aCI6Ii8yMDgyMC8yNDc3MDE0MTEtZDQwZWUyMWEtMjQyOS00MDhmLTllOTYtMjYxNTdiZWNhODU1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA0VDA1MzUzOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWFhYjllNDAwYjNjMjJjMDI4YTU4N2M1MmJkZWVkNzlkNDYzMmM4YmM2MDU2YTk5OTA5ZTEwODA1YjA1Y2JmZGQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.9EbdH9cOpvCcNtU3W7gwWzQ76ZzC-Si4kqh85fE2G6Q)
# On Arch Linux
paru -Sy drtl-bin
You can also just use the prebuilt binaries or build it yourself.
Usage: drtl <name>
Prints tldr page for the given name.
Pages are split into several categories (android, common, linux, osx, sunos, and windows). If
you want a page for a specific category, use "category/name".
Options:
-h, --help print this help
-v, --version print version
-l, --list list all pages
Tested with Zig 0.11.0-dev.3726+8fcc28d30
.
./update_pages.bash # Optionally update tldr pages
zig build
MIT