Context: I am working on a tool like git such that git hats actually routes the user to an executable named git-hats. One nice feature provided by git is that they will list all of the commands available on your system, even if they are not distributed with git. This means figuring everything on the user's PATH and filtering it down to things that match git-*.
My case described here is pretty much exactly the same, and I need the functionality of findExecutables to make it happen.
Question: Is there a strong reason findExecutables (implemented here) is not exposed? If so, would you recommend duplicating the code? If so, what is going on with the mingw32_HOST_OS macros? Do I need to do any special configuration to use macros like that?
Context: I am working on a tool like
gitsuch thatgit hatsactually routes the user to an executable namedgit-hats. One nice feature provided bygitis that they will list all of the commands available on your system, even if they are not distributed with git. This means figuring everything on the user's PATH and filtering it down to things that matchgit-*.My case described here is pretty much exactly the same, and I need the functionality of
findExecutablesto make it happen.Question: Is there a strong reason
findExecutables(implemented here) is not exposed? If so, would you recommend duplicating the code? If so, what is going on with themingw32_HOST_OSmacros? Do I need to do any special configuration to use macros like that?