entry.xml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- klish-3.0.0 XML config example -->
  3. <KLISH
  4. xmlns="http://clish.sourceforge.net/XMLSchema"
  5. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  6. xsi:schemaLocation="http://clish.sourceforge.net/XMLSchema http://clish.sourceforge.net/XMLSchema/clish.xsd">
  7. <!-- VIEW. Views are not visible for path. Switch because you must choose one of the commands -->
  8. <ENTRY name="main" mode="switch" ptype="STRING" container="true">
  9. <!-- COMMAND -->
  10. <ENTRY name="cmd" help="Clear settings" mode="sequence">
  11. <!-- SWITCH container. Container is not visible while CLI session -->
  12. <ENTRY name="opt" help="Switch subcommand" ptype="STRING" mode="switch" container="true">
  13. <!-- PARAMs (switched) -->
  14. <ENTRY name="o1" ptype="SUBCOMMAND" help="Clear callerid_number_prepend assignment" />
  15. <ENTRY name="o2" ptype="SUBCOMMAND" help="Clear record assignment" />
  16. <ENTRY name="o3" ptype="SUBCOMMAND" help="Clear callerid assignment" />
  17. <ENTRY name="o4" ptype="SUBCOMMAND" help="Clear a schedule">
  18. <!-- subPARAM -->
  19. <ENTRY name="o5" help="Include number" ptype="UINT" optional="false" completion="${POSSIBLE_TRUNK_GROUP_INCLUDES}">
  20. </ENTRY>
  21. </ENTRY>
  22. <ENTRY name="o6" ptype="SUBCOMMAND" help="Clear callerid_number_remove assignment" />
  23. <ENTRY name="o7" ptype="SUBCOMMAND" help="Clear callerid_number_postpend assignment" />
  24. <ENTRY name="o8" ptype="SUBCOMMAND" help="Clear callerid_number_replace assignment" />
  25. </ENTRY>
  26. <ACTION sym="nop" exec_on="always">
  27. ps aux
  28. </ACTION>
  29. </ENTRY>
  30. <!-- Another COMMAND. Sequence means that all subENTRYes can be entered simultaneously -->
  31. <ENTRY name="cmd1" help="Clear settings" mode="sequence" ptype="STRING" purpose="common">
  32. <!-- PTYPE. Special purpose=ptype. Link to previosly defined "COMMAND" PTYPE -->
  33. <ENTRY name="COMMAND" purpose="ptype" ref="/COMMAND"/>
  34. <!-- COND. Conditional expression. Is parent COMMAND visible? -->
  35. <ENTRY name="o2" ptype="SUBCOMMAND" purpose="cond"/>
  36. <ENTRY name="o1" help="Clear callerid_number_prepend assignment">
  37. <ENTRY name="COMMAND" purpose="ptype" ref="/COMMAND"/>
  38. </ENTRY>
  39. <ENTRY name="o3" help="Clear callerid_number_prepend assignment">
  40. <ENTRY name="COMMAND" purpose="ptype" ref="/COMMAND"/>
  41. </ENTRY>
  42. <!-- Conditional ACTIONs -->
  43. <ACTION sym="tsym" exec_on="always" ptype="STRING">0</ACTION>
  44. <ACTION sym="tsym" exec_on="always" ptype="STRING">1</ACTION>
  45. <ACTION sym="tsym" exec_on="fail" ptype="STRING">2</ACTION>
  46. <ACTION sym="tsym" exec_on="never" ptype="STRING">3</ACTION>
  47. <ACTION sym="tsym" exec_on="always" ptype="STRING" sync="true">4</ACTION>
  48. <ACTION sym="tsym" exec_on="always" ptype="STRING"></ACTION>
  49. <ACTION sym="tsym" exec_on="success" ptype="STRING">5</ACTION>
  50. <ACTION sym="tsym" exec_on="always" ptype="STRING">6</ACTION>
  51. </ENTRY>
  52. </ENTRY>
  53. </KLISH>