libcli - user defined config file

46 views
Skip to first unread message

maciek borzecki

unread,
May 16, 2009, 5:21:21 AM5/16/09
to Libcli Users
Hi all,
Some time ago I've started bit similar project http://github.com/bboozzoo/uish/tree
but never really had time to finish that.
The main idea behind was to have the user provide a config file with
commands that he/she wants to support and how they map to either
internal commands. The config file looked like this:
http://github.com/bboozzoo/uish/blob/5b75856a14dc75cdbdd0fcc430408844a29b4c61/uish.conf
I expected the effective command (i.e. the one executed after the user
entered proper 'incantation') to be either a script or a C function
from user-supplied, dynamically-loaded library (however this part was
not even started).
One of the problems that appeared was the use of libedit for command
completion, hopefully you don't use any such thing so the external
dependencies are limited.
Summing up, if anyone is interested in fuctionality of this kind
(config file, dynamically loaded code etc), I can play a bit and port
the code to libcli.

maciek
Reply all
Reply to author
Forward
0 new messages