Skip to content

Help with Matching a string with CLI Syntax and Retrieving Callback in Cligen #128

@Dorababupc

Description

@Dorababupc

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions