Show

Simply prints the TinyShell License.

Command line interface

Syntax

  1. $ show

Arguments

This command takes no arguments.

Example

show.js

  1. /**
  2. * Show
  3. **/
  4. TinyShell.plugins.show = new Class({
  5. description: "Show copyright and license",
  6. run : function(t) {
  7. var license = [];
  8. license.push("Copyright (c) 2010 Theis Mackeprang");
  9. license.push("");
  10. license.push("Permission is hereby granted, free of charge, to any person obtaining a copy");
  11. license.push("of this software and associated documentation files (the \"Software\"), to deal");
  12. license.push("in the Software without restriction, including without limitation the rights");
  13. license.push("to use, copy, modify, merge, publish, distribute, sublicense, and/or sell");
  14. license.push("copies of the Software, and to permit persons to whom the Software is");
  15. license.push("furnished to do so, subject to the following conditions:");
  16. license.push("");
  17. license.push("The above copyright notice and this permission notice shall be included in");
  18. license.push("all copies or substantial portions of the Software.");
  19. license.push("");
  20. license.push("THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR");
  21. license.push("IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,");
  22. license.push("FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE");
  23. license.push("AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER");
  24. license.push("LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,");
  25. license.push("OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN");
  26. license.push("THE SOFTWARE.");
  27. license.push("");
  28. t.print(license.join("\n"));
  29. t.resume();
  30. }
  31. });

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>