X-Git-Url: http://git.archive.openwrt.org/?a=blobdiff_plain;f=cli.c;h=e14757e5a88cdfc13aadd74d82813715debab8b1;hb=60d40fa1a8c366ae7a9db2082720395d3dc7c7d8;hp=1fa1cb1095d747672654973728d2bc22972eb250;hpb=4c95913eae05b8a0b1c8e8e6ff219b9d710d564a;p=project%2Fuci.git diff --git a/cli.c b/cli.c index 1fa1cb1..e14757e 100644 --- a/cli.c +++ b/cli.c @@ -12,25 +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" - "\texport []\n" - "\tshow [[.
[.