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> 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. aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa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aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
  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="hook_action@lua_hooks">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="hook_action@lua_hooks">
  78. loadstring("${str}")()
  79. </ACTION>
  80. </COMMAND>
  81. <COMMAND name="test9" ref="eval" help="Alias for the eval command"/>
  82. </VIEW>
  83. </CLISH_MODULE>