X-Git-Url: http://git.archive.openwrt.org/?a=blobdiff_plain;f=cli.c;h=3ade5343b87cb1d1798530ed29aef2c15b022b7d;hb=b69b459ecce221f92235d0def138ff4af3c22543;hp=b7ddd511676ed82fdfe9ce77c841bb6a8cc74ad0;hpb=171170de64e0faff8d0e93581d9971439f474cbd;p=project%2Fuci.git diff --git a/cli.c b/cli.c index b7ddd51..3ade534 100644 --- a/cli.c +++ b/cli.c @@ -12,17 +12,37 @@ */ #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 [] []\n\n" "Commands:\n" - "\tshow [[.
[.