X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fuci.git;a=blobdiff_plain;f=cli.c;h=78707281ef0e178294f23fbe4bae0bd9e53126b7;hp=4e0c5b715d9bbebfc7f8d18de6cfc730a19eaa93;hb=14bd2704bbb61a7cf828119cda4f3616f8254871;hpb=e6279f87129e65c469a29d606a4b6afd7b7207b8 diff --git a/cli.c b/cli.c index 4e0c5b7..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 [[.
[.