tldr-pages / tldr-c-client

C command-line client for tldr pages
MIT License
296 stars 49 forks source link

Add list feature #42

Closed packrat386 closed 4 years ago

packrat386 commented 5 years ago

What does it do?

Add --list option

This will list each of the commands for which there is an entry in the current local database. It lists only packages for the current platform or can be overwritten by the --platform flag. It will update the local database if there is not one.

Why the change?

Requested in #22 and #36

How can this be tested?

Compile the new version of and run tldr --list. It should list everything installed locally.

Where to start code review?

The print_tldrlist and parse_tldrlist functions in parser.c contain the meat of the implementation.

Relevant tickets?

Questions?

zlatanvasovic commented 4 years ago

Thanks!