Permalink
Browse files

Added the Shell

This will create a "Shell" with the basic settings.
  • Loading branch information...
1 parent a646363 commit 67a67baca22648e078bb87714b5984022be1a914 @cdburgess cdburgess committed Dec 31, 2011
Showing with 58 additions and 0 deletions.
  1. +57 −0 Snippets/New Shell.tmSnippet
  2. +1 −0 info.plist
View
57 Snippets/New Shell.tmSnippet
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>&lt;?php
+/**
+ * $1Shell
+ *
+ * ${2:[Short Description]}
+ *
+ * @package ${3:default}
+ * @author ${PHPDOC_AUTHOR:$TM_FULLNAME}
+ * @version \$Id\$
+ * @copyright ${PHPDOC_AUTHOR:$TM_ORGANIZATION_NAME}
+ **/
+
+class ${1:ShellName}Shell extends Shell {
+
+ /**
+ * An array containing the names of tasks this shell uses. The array elements should
+ * not contain the "Shell" part of the classname.
+ *
+ * @var mixed A single name as a string or a list of names as an array.
+ * @access protected
+ */
+ ${4:var \$tasks = array(${5});}
+
+ /**
+ * An array containing the names of models this shell uses.
+ *
+ * @var mixed A single name as a string or a list of names as an array.
+ * @access protected
+ */
+ ${6:var \$uses = array(${7});}
+
+ /**
+ * Main action
+ *
+ * @access public
+ */
+ public function main() {
+ ${8}
+ }
+
+}
+?&gt;</string>
+ <key>name</key>
+ <string>New Shell</string>
+ <key>scope</key>
+ <string>source.php.cake</string>
+ <key>tabTrigger</key>
+ <string>shell</string>
+ <key>uuid</key>
+ <string>FEFA8C56-C8CB-4FBD-B5C0-E273FFCD096E</string>
+</dict>
+</plist>
View
1 info.plist
@@ -459,6 +459,7 @@
<string>A7B72B5C-5E87-44CA-9FDF-6CF6FA3C50F5</string>
<string>E647EDCD-5620-4B63-8699-52C7D7AD9A7E</string>
<string>03D809B4-7F9C-4F30-A402-60DDF7F8EBE6</string>
+ <string>FEFA8C56-C8CB-4FBD-B5C0-E273FFCD096E</string>
<string>851FE129-A51B-41E1-9770-4D0C1D8AC09E</string>
<string>69697F8C-ED14-4E23-B334-F7B0DC78B83C</string>
<string>91FFD2A3-AAC0-40AF-9807-1963325EBCD9</string>

0 comments on commit 67a67ba

Please sign in to comment.