X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fuci.git;a=blobdiff_plain;f=cli.c;h=845fc2acee988e0ac285ba6d6e8f900d53549cf3;hp=b7ddd511676ed82fdfe9ce77c841bb6a8cc74ad0;hb=abccd307f468012652f5347c46a3877a975fa108;hpb=171170de64e0faff8d0e93581d9971439f474cbd diff --git a/cli.c b/cli.c index b7ddd51..845fc2a 100644 --- a/cli.c +++ b/cli.c @@ -12,23 +12,64 @@ */ #include #include +#include #include "uci.h" +static const char *appname = "uci"; +static enum { + CLI_FLAG_MERGE = (1 << 0), + CLI_FLAG_QUIET = (1 << 1) +} 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 [[.
[.