From 3bff697cca125a6a4147e3bd1c469b36504e8237 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 18 Aug 2008 16:54:57 +0200 Subject: [PATCH] add list support --- cli.c | 60 ++++++++++++++++++------- file.c | 44 +++++++++++++++++- history.c | 37 ++++++++++----- list.c | 131 ++++++++++++++++++++++++++++++++++++++++++++++++++---- uci.h | 29 +++++++++++- 5 files changed, 260 insertions(+), 41 deletions(-) diff --git a/cli.c b/cli.c index 5ae345e..cd82938 100644 --- a/cli.c +++ b/cli.c @@ -19,6 +19,7 @@ #define MAX_ARGS 4 /* max command line arguments for batch mode */ +static const char *delimiter = " "; static const char *appname; static enum { CLI_FLAG_MERGE = (1 << 0), @@ -34,6 +35,7 @@ enum { /* section cmds */ CMD_GET, CMD_SET, + CMD_ADD_LIST, CMD_DEL, CMD_RENAME, CMD_REVERT, @@ -61,14 +63,17 @@ static void uci_usage(void) "\tchanges []\n" "\tcommit []\n" "\tadd \n" + "\tadd_list .
.