Hello everyone,
I have my CLI syntax definitions declared in a .cli file and the corresponding callback functions implemented in a .c file. My requirement is to write a function that takes an input string S, checks if it matches any syntax in the .cli file, and retrieves the corresponding callback function pointer.
In essence, I want to mimic how Cligen processes input—parsing and matching it against the defined CLI syntax to identify the associated callback.
Are there any inbuilt Cligen library functions that can help with this? Any guidance or references would be greatly appreciated.
Thank you in advance for your help!