test.xml 5.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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 builtin="clish_script@clish">
  15. echo "Empty attribute"
  16. </ACTION>
  17. </COMMAND>
  18. <COMMAND name="test2" help='Single quotes' lock="false">
  19. <ACTION> echo "Single quotes" </ACTION>
  20. </COMMAND>
  21. <COMMAND name="test3" help='"Single quotes with nested common quotes"' lock="false">
  22. <ACTION> echo "Single quotes with nested common quotes" </ACTION>
  23. </COMMAND>
  24. <COMMAND name="test4" help="'Common quotes with nested single quotes'" lock="false">
  25. <ACTION> echo "Common quotes with nested single quotes" </ACTION>
  26. </COMMAND>
  27. <COMMAND name="test5" help="Broken comment. Problem with libroxml.">
  28. <!-- - '
  29. -->
  30. <PARAM name="test5.param2" help="Help test5.param2" ptype="STRING" optional="true" order="true"/>
  31. <ACTION> echo "Broken comment. Problem with libroxml." </ACTION>
  32. </COMMAND>
  33. <COMMAND name="test6" help="Long ACTION. libexpat hangs">
  34. <ACTION>
  35. shell [[
  36. aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
  37. aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa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aaaa
  67. aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
  68. ]]
  69. </ACTION>
  70. </COMMAND>
  71. <COMMAND help="The > within attribute value" name="test7" lock="false">
  72. <ACTION> echo "The > within attribute value" </ACTION>
  73. </COMMAND>
  74. <COMMAND name="test8" help="Call a Lua function">
  75. <ACTION>hello_world()</ACTION>
  76. </COMMAND>
  77. <COMMAND name="eval" help="Evaluate a string as Lua chunk">
  78. <PARAM name="str" help="String to evaluate" ptype="STRING"/>
  79. <ACTION>loadstring("${str}")()</ACTION>
  80. </COMMAND>
  81. <COMMAND name="test9" ref="eval" help="Alias for the eval command"/>
  82. </VIEW>
  83. </CLISH_MODULE>