root-view.xml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. <VIEW name="root-view"
  8. prompt="${SYSTEM_NAME}&gt; ">
  9. <!--===================================================-->
  10. <COMMAND name="exit"
  11. help="Exit this CLI session">
  12. <ACTION builtin="clish_close"/>
  13. </COMMAND>
  14. <!--===================================================-->
  15. <COMMAND name="params"
  16. help="Demonstrate the different parameter types">
  17. <PARAM name="one"
  18. help="no prefix and no default"
  19. ptype="STRING"/>
  20. <PARAM name="two"
  21. help="prefix but no default"
  22. ptype="STRING"
  23. prefix="-one"/>
  24. <PARAM name="three"
  25. help="default and prefix"
  26. ptype="STRING"
  27. prefix="-three"
  28. default = "default-three"/>
  29. <PARAM name="four"
  30. help="default but no prefix"
  31. ptype="STRING"
  32. default = "default-four"/>
  33. <ACTION>
  34. echo "ONE : ${one}"
  35. echo "TWO : ${two}"
  36. echo "THREE: ${three}"
  37. echo "FOUR : ${four}"
  38. </ACTION>
  39. </COMMAND>
  40. <!--===================================================-->
  41. </VIEW>
  42. <!--=======================================================-->
  43. </CLISH_MODULE>