kworkflow / patch-hub

patch-hub is a TUI that streamlines the interaction of Linux developers with patches archived on lore.kernel.org
GNU General Public License v2.0
8 stars 6 forks source link

feat: check if the dependencies are present #66

Closed OJarrisonn closed 1 month ago

OJarrisonn commented 1 month ago

Check if the depedencies are present, log any issues and if mandatory dependencies are not present do not run the app

This implementation depends on the existence of which in the system

Closes: #48

OJarrisonn commented 1 month ago

Just added a simple unit test for utils::binary_exists

I think it's reasonable to supose that there_is_no_way_this_binary_exists won't be a file in the $PATH of anyone running this test suit

davidbtadokoro commented 1 month ago

Hey @OJarrisonn, thanks for both updates! IMHO, it looks really neat and prevents us from having these ugly crashes we've talked about in the issue. Also liked the creativity of the invalid test case of binary_exists :rofl:

Change merged into the unstable branch :+1: