Plugin manager, misc fixes
* Fixed an error when trying to create nonexisting resource type * Updated the init-command to create plugins and scipts directories * Added a basic installer function
This commit is contained in:
@ -26,12 +26,14 @@ class InitCommand extends Command
|
||||
|
||||
mkdir($configDir);
|
||||
mkdir($configDir."/plugins");
|
||||
mkdir($configDir."/scripts");
|
||||
file_put_contents($configDir."/spark.json", json_encode([
|
||||
'preload' => [
|
||||
'./.spark/plugins/*'
|
||||
'./.spark/plugins/*',
|
||||
'./.spark/scripts/*'
|
||||
],
|
||||
'scripts' => [
|
||||
'hello' => "echo 'Hello World\n'"
|
||||
'hello' => "echo 'Hello World'"
|
||||
]
|
||||
], JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES));
|
||||
|
||||
|
Reference in New Issue
Block a user