X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuci.git;a=blobdiff_plain;f=cli.c;h=78707281ef0e178294f23fbe4bae0bd9e53126b7;hp=b7ddd511676ed82fdfe9ce77c841bb6a8cc74ad0;hb=402b084b1e5417dc2fb7d84373c1b9fb8642696a;hpb=171170de64e0faff8d0e93581d9971439f474cbd diff --git a/cli.c b/cli.c index b7ddd51..7870728 100644 --- a/cli.c +++ b/cli.c @@ -12,17 +12,48 @@ */ #include #include +#include #include "uci.h" +static const char *appname = "uci"; +static enum { + CLI_FLAG_MERGE = (1 << 0), +} flags; +static FILE *input; + static struct uci_context *ctx; +enum { + /* section cmds */ + CMD_GET, + CMD_SET, + CMD_DEL, + CMD_RENAME, + /* package cmds */ + CMD_SHOW, + CMD_IMPORT, + CMD_EXPORT, + CMD_COMMIT, +}; static void uci_usage(int argc, char **argv) { fprintf(stderr, "Usage: %s [] []\n\n" "Commands:\n" - "\tshow [[.
[.