1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- <?xml version="1.0" encoding="UTF-8"?>
- <CLISH_MODULE xmlns="http://clish.sourceforge.net/XMLSchema"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://clish.sourceforge.net/XMLSchema
- http://clish.sourceforge.net/XMLSchema/clish.xsd">
- <!--=======================================================-->
- <PTYPE name="STRING" pattern=".+" help="String"/>
- <VIEW name="test-view"
- prompt="${SYSTEM_NAME}# ">
- <COMMAND name="exit" help="Exit from the CLI" lock="false">
- <ACTION builtin="clish_close"/>
- </COMMAND>
- <COMMAND name="test1" help="" lock="false">
- <ACTION> echo "Empty attribute" </ACTION>
- </COMMAND>
- <COMMAND name="test2" help='Single quotes' lock="false">
- <ACTION> echo "Single quotes" </ACTION>
- </COMMAND>
- <COMMAND name="test3" help='"Single quotes with nested common quotes"' lock="false">
- <ACTION> echo "Single quotes with nested common quotes" </ACTION>
- </COMMAND>
- <COMMAND name="test4" help="'Common quotes with nested single quotes'" lock="false">
- <ACTION> echo "Common quotes with nested single quotes" </ACTION>
- </COMMAND>
- <COMMAND name="test5" help="Broken comment. Problem with libroxml.">
- <!-- - '
- -->
- <PARAM name="test5.param2" help="Help test5.param2" ptype="STRING" optional="true" order="true"/>
- <ACTION> echo "Broken comment. Problem with libroxml." </ACTION>
- </COMMAND>
- <COMMAND name="test6" help="Long ACTION. libexpat hangs">
- <ACTION>
- shell [[
- aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
- aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
- aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa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- <ACTION> echo "The > within attribute value" </ACTION>
- </COMMAND>
- <COMMAND name="test8" help="Call a Lua function">
- <ACTION builtin="hook_action@lua_hooks">hello_world()</ACTION>
- </COMMAND>
- <COMMAND name="eval" help="Evaluate a string as Lua chunk">
- <PARAM name="str" help="String to evaluate" ptype="STRING"/>
- <ACTION builtin="hook_action@lua_hooks">
- loadstring("${str}")()
- </ACTION>
- </COMMAND>
- <COMMAND name="test9" ref="eval" help="Alias for the eval command"/>
- </VIEW>
- </CLISH_MODULE>
|