From c57bfa88f8e6850edec6bd4da5881a0b4456c1e0 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 2 Feb 2008 23:01:01 +0100 Subject: [PATCH] add stub for uci import --- cli.c | 42 ++++++++++++++++++++++++++++++++++++------ 1 file changed, 36 insertions(+), 6 deletions(-) diff --git a/cli.c b/cli.c index 3ade534..0d663e1 100644 --- a/cli.c +++ b/cli.c @@ -16,6 +16,10 @@ #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; enum { @@ -26,6 +30,7 @@ enum { CMD_RENAME, /* package cmds */ CMD_SHOW, + CMD_IMPORT, CMD_EXPORT, CMD_COMMIT, }; @@ -35,14 +40,18 @@ static void uci_usage(int argc, char **argv) fprintf(stderr, "Usage: %s [] []\n\n" "Commands:\n" - "\texport []\n" - "\tshow [[.
[.