script-view.xml 941 B

1234567891011121314151617181920212223242526
  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="script-view"
  7. prompt="Scripting Demo&gt; ">
  8. <COMMAND name="show"
  9. help="Dump the contents of the script.txt file">
  10. <ACTION>cat ./script.txt</ACTION>
  11. </COMMAND>
  12. <COMMAND name="pwd"
  13. help="Show the current working directory">
  14. <ACTION>pwd</ACTION>
  15. </COMMAND>
  16. <COMMAND name="run"
  17. help="Lanuch a new clish session and feed in script.txt">
  18. <ACTION>./clish &lt; script.txt</ACTION>
  19. </COMMAND>
  20. <COMMAND name="exit"
  21. help="Exit the scripting demo view"
  22. view="root-view">
  23. </COMMAND>
  24. </VIEW>
  25. </CLISH_MODULE>