named-view.xml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. <VIEW name="root-view">
  7. <COMMAND name="named-view"
  8. help="Enter the named view"
  9. view="named-view"
  10. viewid="name=${name};foobar=${other}">
  11. <PARAM name="name"
  12. help="The name to used for the named view"
  13. ptype="STRING"/>
  14. <PARAM name="other"
  15. help="Another value which can be optionally set"
  16. ptype="STRING"
  17. default="foobar"/>
  18. </COMMAND>
  19. </VIEW>
  20. <VIEW name="named-view"
  21. prompt="NAME='${name}'&gt; ">
  22. <COMMAND name="show"
  23. help="Show the named view details">
  24. <ACTION>
  25. echo "NAME : ${name}"
  26. echo "OTHER: ${foobar}"
  27. </ACTION>
  28. </COMMAND>
  29. <COMMAND name="rename"
  30. help="Enter the named view"
  31. view="named-view"
  32. viewid="name=${new_name};foobar=${foobar}">
  33. <PARAM name="new_name"
  34. help="The name to used for the named view"
  35. ptype="STRING"/>
  36. <ACTION> echo "Changing name to '${new_name}'"</ACTION>
  37. </COMMAND>
  38. <COMMAND name="exit"
  39. help="Exit the named view"
  40. view="root-view"/>
  41. </VIEW>
  42. </CLISH_MODULE>