nob.h
nob.h copied to clipboard
Add option to not reset the command after execution
A missing feature from the new API that was available on the deprecated one, is the ability to execute the commands without reseting the memory associated with them. While in many cases just firing the command and reusing the memory for the next is sufficient, there are situations where we might want to keep the command data.
My use case scenario for this functionality is using the commands that were executed successfully to generate a compile_commands.json file for the project afterwards (which is useful for people using LSPs).