Added plugins and build tools
This commit is contained in:
25
plugins/com.noccy.git/sparkplug.php
Normal file
25
plugins/com.noccy.git/sparkplug.php
Normal file
@ -0,0 +1,25 @@
|
||||
<?php // "name":"Git plugin for SparkPlug", "author":"Noccy"
|
||||
|
||||
namespace SparkPlug\Com\Noccy\Git;
|
||||
|
||||
use Spark\Commands\Command;
|
||||
use SparkPlug;
|
||||
use Symfony\Component\Console\Input\InputInterface;
|
||||
use Symfony\Component\Console\Output\OutputInterface;
|
||||
|
||||
class GitPlug extends SparkPlug
|
||||
{
|
||||
public function load()
|
||||
{
|
||||
$root = $this->getProjectDirectory();
|
||||
if (!file_exists($root."/.git")) {
|
||||
return;
|
||||
}
|
||||
|
||||
register_command(new GitIgnoreCommand());
|
||||
}
|
||||
}
|
||||
|
||||
//if (file_exists(get_environment()->getConfigDirectory()."/maker.json")) {
|
||||
register_plugin("com.noccy.git", new GitPlug());
|
||||
//}
|
Reference in New Issue
Block a user