example.xml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <KLISH
  3. xmlns="https://klish.libcode.org/klish3"
  4. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  5. xsi:schemaLocation="https://src.libcode.org/pkun/klish/src/master/klish.xsd">
  6. <PLUGIN name="klish"/>
  7. <ENTRY name="COMMAND" purpose="ptype">
  8. <ENTRY name="completion" purpose="completion">
  9. <ACTION sym="completion_COMMAND"/>
  10. </ENTRY>
  11. <ENTRY name="help" purpose="help">
  12. <ACTION sym="completion_COMMAND"/>
  13. </ENTRY>
  14. <ACTION sym="COMMAND"/>
  15. </ENTRY>
  16. <ENTRY name="main" mode="switch" container="true">
  17. <ENTRY name="prompt" purpose="prompt">
  18. <ACTION sym="prompt">%u@%h&gt; </ACTION>
  19. </ENTRY>
  20. <ENTRY name="exit" help="Exit view">
  21. <ENTRY name="COMMAND" purpose="ptype" ref="/COMMAND"/>
  22. <ACTION sym="nav">pop</ACTION>
  23. <ACTION sym="printl">Exiting klish session</ACTION>
  24. </ENTRY>
  25. <ENTRY name="cmd" help="Clear settings" mode="sequence">
  26. <ENTRY name="COMMAND" purpose="ptype" ref="/COMMAND"/>
  27. <ENTRY name="first" help="Clear settings">
  28. <ENTRY name="COMMAND" purpose="ptype" ref="/COMMAND"/>
  29. </ENTRY>
  30. <ACTION sym="printl">test</ACTION>
  31. </ENTRY>
  32. <ENTRY name="cmd2" help="Clear settings" mode="sequence">
  33. <ENTRY name="COMMAND" purpose="ptype" ref="/COMMAND"/>
  34. <ACTION sym="printl">test cmd2</ACTION>
  35. </ENTRY>
  36. <ENTRY name="comm" value="command" help="Clear settings" mode="sequence">
  37. <ENTRY name="COMMAND" purpose="ptype" ref="/COMMAND"/>
  38. <ACTION sym="printl">test2</ACTION>
  39. </ENTRY>
  40. </ENTRY>
  41. </KLISH>