From 80c7c894aba1a6c99d8cb4cb7b29513a485b7bac Mon Sep 17 00:00:00 2001 From: Christopher Vagnetoft Date: Wed, 22 Dec 2021 02:46:58 +0100 Subject: [PATCH] Removed incomplete plugin stub --- plugins/com.noccy.maker/sparkplug.php | 42 --------------------------- 1 file changed, 42 deletions(-) delete mode 100644 plugins/com.noccy.maker/sparkplug.php diff --git a/plugins/com.noccy.maker/sparkplug.php b/plugins/com.noccy.maker/sparkplug.php deleted file mode 100644 index dd68da1..0000000 --- a/plugins/com.noccy.maker/sparkplug.php +++ /dev/null @@ -1,42 +0,0 @@ -getConfigDirectory()."/maker.json"), true); - foreach ($config as $rule=>$info) { - if (str_starts_with($rule, '@')) { - $rule = substr($rule, 1); - register_command(new class($rule) extends Command { - private $rule; - public function __construct($rule) - { - $this->rule = $rule; - parent::__construct(); - } - protected function configure() - { - $this->setName("make:{$this->rule}"); - $this->setDescription("Run the {$this->rule} maker task"); - } - protected function execute(InputInterface $input, OutputInterface $output) - { - - } - }); - } - } - } -} - -if (file_exists(get_environment()->getConfigDirectory()."/maker.json")) { - register_plugin("com.noccy.maker", new MakerPlug()); -}