X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fuci.git;a=blobdiff_plain;f=cli.c;h=3ade5343b87cb1d1798530ed29aef2c15b022b7d;hp=5e0697da2ed2f0f808092941fb9207ecc50ad22f;hb=fb83e2b2dd376186833207f2877c676c1c6764d1;hpb=854f7c5d08cd37aeb7414e26ed6666fad26f5f7a diff --git a/cli.c b/cli.c index 5e0697d..3ade534 100644 --- a/cli.c +++ b/cli.c @@ -12,40 +12,191 @@ */ #include #include +#include #include "uci.h" +static const char *appname = "uci"; + static struct uci_context *ctx; +enum { + /* section cmds */ + CMD_GET, + CMD_SET, + CMD_DEL, + CMD_RENAME, + /* package cmds */ + CMD_SHOW, + CMD_EXPORT, + CMD_COMMIT, +}; static void uci_usage(int argc, char **argv) { fprintf(stderr, - "Usage: %s [options] [arguments]\n\n" + "Usage: %s [] []\n\n" "Commands:\n" - "\tshow [[.
[.