X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuci.git;a=blobdiff_plain;f=cli.c;h=3ade5343b87cb1d1798530ed29aef2c15b022b7d;hp=7dece62f5556878a5f300ffddf88f576c30cec8d;hb=bdb2bbfbe937312463763bd5ce35a7f857238081;hpb=f7df28b4d0155c780fa46a09d2dbcf7825faebae;ds=sidebyside diff --git a/cli.c b/cli.c index 7dece62..3ade534 100644 --- a/cli.c +++ b/cli.c @@ -12,39 +12,191 @@ */ #include #include +#include #include "uci.h" +static const char *appname = "uci"; + static struct uci_context *ctx; +enum { + /* section cmds */ + CMD_GET, + CMD_SET, + CMD_DEL, + CMD_RENAME, + /* package cmds */ + CMD_SHOW, + CMD_EXPORT, + CMD_COMMIT, +}; static void uci_usage(int argc, char **argv) { fprintf(stderr, - "Usage: %s [options] [arguments]\n\n" + "Usage: %s [] []\n\n" "Commands:\n" - "\tshow [[.
[.