From 0982a4fd719a3d6b0b6371b86a060998f0dc03f3 Mon Sep 17 00:00:00 2001 From: "j.faassen" Date: Sun, 3 Apr 2016 16:18:27 +0200 Subject: [PATCH] Initial checkin --- .gitignore | 56 +++++++++++++++++++++++++++++++++++++++++++++ LICENSE.md | 19 +++++++++++++++ README.md | 8 +++++++ composer.json | 24 +++++++++++++++++++ src/DroidPlugin.php | 20 ++++++++++++++++ 5 files changed, 127 insertions(+) create mode 100644 .gitignore create mode 100644 LICENSE.md create mode 100644 README.md create mode 100644 composer.json create mode 100644 src/DroidPlugin.php diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..bf3e96d --- /dev/null +++ b/.gitignore @@ -0,0 +1,56 @@ +# Created by http://www.gitignore.io + +### Eclipse ### +*.pydevproject +.metadata +.gradle +tmp/ +*.tmp +*.bak +*.swp +*~.nib +local.properties +.settings/ +.loadpath + +# External tool builders +.externalToolBuilders/ + +# Locally stored "Eclipse launch configurations" +*.launch + +# CDT-specific +.cproject + +# PDT-specific +.buildpath + +# sbteclipse plugin +.target + +# TeXlipse plugin +.texlipse + + +### NetBeans ### +nbproject/private/ +build/ +nbbuild/ +dist/ +nbdist/ +nbactions.xml +nb-configuration.xml + + +### vim ### +[._]*.s[a-w][a-z] +[._]s[a-w][a-z] +*.un~ +Session.vim +.netrwhist +*~ + +### Composer ### +vendor/ +composer.lock +autotune.json diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 0000000..80407e7 --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,19 @@ +# The MIT License + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..8d1a62f --- /dev/null +++ b/README.md @@ -0,0 +1,8 @@ +droid-haigha +============== + +[Droid](https://github.com/droid-php/droid) plugin for [Haigha](https://github.com/linkorb/haigha) + +## Supported commands: + +- haigha:load diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..3301daf --- /dev/null +++ b/composer.json @@ -0,0 +1,24 @@ +{ + "name": "droid/droid-haigha", + "description": "Droid plugin for Haigha", + "homepage": "http://www.github.com/droid-php/droid-haigha", + "keywords": ["php", "droid", "haigha", "linkorb"], + "type": "library", + "authors": [ + { + "name": "LinkORB Engineering", + "email": "engineering@linkorb.com", + "role": "Development" + } + ], + "require": { + "symfony/console": "~2.7", + "linkorb/haigha": "~1.0" + }, + "autoload": { + "psr-4": { + "Droid\\Plugin\\Haigha\\": "src/" + } + }, + "license": "MIT" +} diff --git a/src/DroidPlugin.php b/src/DroidPlugin.php new file mode 100644 index 0000000..aa58138 --- /dev/null +++ b/src/DroidPlugin.php @@ -0,0 +1,20 @@ +droid = $droid; + } + + public function getCommands() + { + $commands = []; + $command = new \Haigha\Command\LoadCommand(); + $command->setName('haigha:load'); + $commands[] = $command; + return $commands; + } +}