X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fuci.git;a=blobdiff_plain;f=cli.c;h=3ade5343b87cb1d1798530ed29aef2c15b022b7d;hp=1fa1cb1095d747672654973728d2bc22972eb250;hb=bdb2bbfbe937312463763bd5ce35a7f857238081;hpb=4c95913eae05b8a0b1c8e8e6ff219b9d710d564a diff --git a/cli.c b/cli.c index 1fa1cb1..3ade534 100644 --- a/cli.c +++ b/cli.c @@ -12,9 +12,23 @@ */ #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) { @@ -25,6 +39,10 @@ static void uci_usage(int argc, char **argv) "\tshow [[.
[.