Skip to content

Commit

Permalink
Merge pull request #4 from cdburgess/master
Browse files Browse the repository at this point in the history
New Shell snippet
  • Loading branch information
markstory committed Jan 6, 2012
2 parents 0cb3b81 + 67a67ba commit 1536720
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
57 changes: 57 additions & 0 deletions 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>
1 change: 1 addition & 0 deletions info.plist
Expand Up @@ -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>
Expand Down

0 comments on commit 1536720

Please sign in to comment.