X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fuci.git;a=blobdiff_plain;f=cli.c;h=3d25b7c42c21dc3eeda83987ff1bc56a39ad0250;hp=7dece62f5556878a5f300ffddf88f576c30cec8d;hb=78f76bde7306cc9dd501b5325b2e40af8b22ad51;hpb=f7df28b4d0155c780fa46a09d2dbcf7825faebae diff --git a/cli.c b/cli.c index 7dece62..3d25b7c 100644 --- a/cli.c +++ b/cli.c @@ -12,39 +12,182 @@ */ #include #include +#include #include "uci.h" +static const char *appname = "uci"; + static struct uci_context *ctx; +enum { + CMD_GET, + CMD_SET, + CMD_DEL +}; static void uci_usage(int argc, char **argv) { fprintf(stderr, - "Usage: %s [options] [arguments]\n\n" + "Usage: %s [] []\n\n" "Commands:\n" - "\tshow [[.
[.