LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Need a modular & expandable CLI (https://www.linuxquestions.org/questions/programming-9/need-a-modular-and-expandable-cli-4175436832/)

yaplej 11-12-2012 03:26 PM

Need a modular & expandable CLI
 
Hey everyone,

I'm trying to make some progress on a project of mine and I need a CLI. I have already implemented a full-duplex IPC between the CLI application and a daemon process.

The CLI application and daemon communicate using a message queue. Anything typed in the CLI application gets sent to the daemon where its parsed and will execute.

I would like to have some type of modular CLI framework so if new commands are implemented in a module that module registers them with the IPC module and it becomes "aware" of those commands. As commands are registered it would build a command tree is what I picture.

Anyone know of an existing framework that might work? The language is C.

Thanks.

yaplej 11-12-2012 08:42 PM

I found this library and it just might do the job. Seems to have everything I needed. Modular, expandable and written in C.
https://github.com/dparrish/libcli


All times are GMT -5. The time now is 08:40 PM.