1234567891011121314151617181920212223242526272829303132333435363738 |
- <?xml version="1.0" encoding="UTF-8"?>
- <KLISH
- xmlns="http://clish.sourceforge.net/XMLSchema"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://clish.sourceforge.net/XMLSchema http://clish.sourceforge.net/XMLSchema/clish.xsd">
- <PLUGIN name="klish"/>
- <ENTRY name="COMMAND" purpose="ptype">
- <ACTION sym="COMMAND"/>
- </ENTRY>
- <ENTRY name="INT" purpose="ptype">
- <ACTION sym="INT"/>
- </ENTRY>
- <ENTRY name="main" mode="switch" container="true">
- <ENTRY name="cmd" help="Clear settings" mode="sequence">
- <ENTRY name="COMMAND" purpose="ptype" ref="/COMMAND"/>
- <ENTRY name="int_val" help="Integer" mode="sequence" min="1" max="2">
- <ENTRY name="INT" purpose="ptype" ref="/INT"/>
- </ENTRY>
- <ACTION sym="lua">
- local pars = klish.par()
- for k, v in ipairs(pars) do
- print(v..":", pars[v][1])
- end
- print("int_val = ", klish.par('int_val')[1])
- </ACTION>
- </ENTRY>
- </ENTRY>
- <PLUGIN name="lua"/>
- </KLISH>
|