test.xml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <CLISH_MODULE xmlns="http://clish.sourceforge.net/XMLSchema"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://clish.sourceforge.net/XMLSchema
  5. http://clish.sourceforge.net/XMLSchema/clish.xsd">
  6. <!--=======================================================-->
  7. <PTYPE name="STRING" pattern=".+" help="String"/>
  8. <VIEW name="test-view"
  9. prompt="${SYSTEM_NAME}# ">
  10. <COMMAND name="exit" help="Exit from the CLI" lock="false">
  11. <ACTION builtin="clish_close"/>
  12. </COMMAND>
  13. <COMMAND name="test1" help="" lock="false">
  14. <ACTION> echo "Empty attribute" </ACTION>
  15. </COMMAND>
  16. <COMMAND name="test2" help='Single quotes' lock="false">
  17. <ACTION> echo "Single quotes" </ACTION>
  18. </COMMAND>
  19. <COMMAND name="test3" help='"Single quotes with nested common quotes"' lock="false">
  20. <ACTION> echo "Single quotes with nested common quotes" </ACTION>
  21. </COMMAND>
  22. <COMMAND name="test4" help="'Common quotes with nested single quotes'" lock="false">
  23. <ACTION> echo "Common quotes with nested single quotes" </ACTION>
  24. </COMMAND>
  25. <COMMAND name="test5" help="Broken comment. Problem with libroxml.">
  26. <!-- - '
  27. -->
  28. <PARAM name="test5.param2" help="Help test5.param2" ptype="STRING" optional="true" order="true"/>
  29. <ACTION> echo "Broken comment. Problem with libroxml." </ACTION>
  30. </COMMAND>
  31. <COMMAND name="test6" help="Long ACTION. libexpat hangs">
  32. <ACTION>
  33. shell [[
  34. aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
  35. aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa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aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
  66. ]]
  67. </ACTION>
  68. </COMMAND>
  69. <COMMAND help="The > within attribute value" name="test7" lock="false">
  70. <ACTION> echo "The > within attribute value" </ACTION>
  71. </COMMAND>
  72. <COMMAND name="test8" help="Call a Lua function">
  73. <ACTION builtin="lua@lua">hello_world()</ACTION>
  74. </COMMAND>
  75. <COMMAND name="eval" help="Evaluate a string as Lua chunk">
  76. <PARAM name="str" help="String to evaluate" ptype="STRING"/>
  77. <ACTION builtin="lua@lua">loadstring("${str}")()</ACTION>
  78. </COMMAND>
  79. <COMMAND name="test9" ref="eval" help="Alias for the eval command"/>
  80. </VIEW>
  81. </CLISH_MODULE>