X-Git-Url: http://git.archive.openwrt.org/?a=blobdiff_plain;ds=sidebyside;f=cli.c;h=bedef6dbbed012490ead5622e8ec09ea94a6faf8;hb=333ef9e09be5ac9c191625cca4efcebdbfc22073;hp=2252e5e395b6061d22e1cc560bfb98e5488db078;hpb=a1f1ee31878c71cb460126d07429eab07587d170;p=project%2Fuci.git diff --git a/cli.c b/cli.c index 2252e5e..bedef6d 100644 --- a/cli.c +++ b/cli.c @@ -12,19 +12,48 @@ */ #include #include +#include #include "uci.h" +static const char *appname = "uci"; +static enum { + CLI_FLAG_MERGE = (1 << 0), +} flags; +static FILE *input = stdin; + static struct uci_context *ctx; -static char *buf = NULL; -static int buflen = 256; +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 [[.
[.