X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=cli.c;h=78707281ef0e178294f23fbe4bae0bd9e53126b7;hb=0a18953fa3ff8aabea37d81b434e9f577e3fbf34;hp=e17acb5fe3c18d277a61b09426dd7533c00a38da;hpb=4aa3fd762e2190a4e418581cf24446484d0b7df5;p=project%2Fuci.git diff --git a/cli.c b/cli.c index e17acb5..7870728 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; + 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" - "\texport []\n" - "\tshow [[.
[.