123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146 |
- ischeme_t sch = {
- PLUGIN_LIST
- PLUGIN {
- .name = "plugin1",
- .id = "id1",
- .file = "file1",
- .global = "true",
- },
- PLUGIN {
- .name = "plugin2",
- .id = "id2",
- .file = "file2",
- .global = "false",
- },
- END_PLUGIN_LIST,
- PTYPE_LIST
- PTYPE {
- .name = "ptype1",
- .help = "help1",
- ACTION_LIST
- ACTION {
- .sym = "internal",
- .script = "cat /etc/passwd",
- },
- ACTION {
- .sym = "internal",
- .script = "cat /etc/group",
- },
- END_ACTION_LIST,
- },
- PTYPE {
- .name = "ptype2",
- .help = "help2",
- },
- END_PTYPE_LIST,
- VIEW_LIST
- VIEW {
- .name = "view1",
- COMMAND_LIST
- COMMAND {
- .name = "command1",
- .help = "help1",
- },
- COMMAND {
- .name = "command2",
- .help = "help1",
- },
- COMMAND {
- .name = "command3",
- .help = "help1",
- },
- END_COMMAND_LIST,
- },
- VIEW {
- .name = "view2",
- },
- VIEW {
- .name = "view1",
- COMMAND_LIST
- COMMAND {
- .name = "command4",
- .help = "help1",
- },
- COMMAND {
- .name = "command5",
- .help = "help1",
- PARAM_LIST
- PARAM {
- .name = "param1",
- .help = "helpparam1",
- .ptype = "ptype1",
- },
- PARAM {
- .name = "param2",
- .help = "helpparam2",
- .ptype = "ptype2",
- PARAM_LIST
- PARAM {
- .name = "param3",
- .help = "helpparam1",
- .ptype = "ptype1",
- },
- PARAM {
- .name = "param4",
- .help = "helpparam2",
- .ptype = "ptype2",
- },
- END_PARAM_LIST,
- },
- END_PARAM_LIST,
- ACTION_LIST
- ACTION {
- .sym = "internal",
- .script = "cat /etc/passwd",
- },
- ACTION {
- .sym = "internal",
- .script = "cat /etc/group",
- },
- END_ACTION_LIST,
- },
- END_COMMAND_LIST,
- },
- //VIEW {
- // },
- END_VIEW_LIST,
- };
|