run tldr <command> where the command is not found in current user's platform.
After this change, it should be able to find the command description even it is not in user's platform.
Where to start code review?
Main change: src/parser.c
abstract the logic and make the function name more descriptive (i.e. IsPageInPlatformList)
add platformList in tldr.h for scalability. Developers only have to update the list in tldr.h, and the list can be used in any *.c files.
[Enhancement] Search commands in all platforms if it is not found in current user's platform
What does it do?
make tldr-c-client to find a command in all platforms if it is not found in user's platform.
Why the change?
To enhance tldr-c-client as mentioned in https://github.com/tldr-pages/tldr-c-client/issues/96
How can this be tested?
run
tldr <command>
where the command is not found in current user's platform. After this change, it should be able to find the command description even it is not in user's platform.Where to start code review?
Main change: src/parser.c
Relevant tickets?
https://github.com/tldr-pages/tldr-c-client/issues/96
Questions?
<Ask us anything!>
Checklist
make
and tested the change in an active installation withsudo make install
.