/* * Copyright (C) 2008 Felix Fietkau * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 * as published by the Free Software Foundation * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ #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" "\timport []\n" "\tshow [[.
[.