diff --git a/ahoy.yml b/ahoy.yml new file mode 100644 index 0000000000000000000000000000000000000000..8fc1be5d082fe1f783ba9f4d63225ab6f1352bd7 --- /dev/null +++ b/ahoy.yml @@ -0,0 +1,5 @@ +ahoyapi: v2 +commands: + update: + cmd: composer ahoy "$@" + usage: Update Ahoy setup in project diff --git a/composer.json b/composer.json index 4e8dbb7795dc794482c0d7348cf99597cfb9f0d2..1ba9cb94c84ab4c753b455e03a2f66998500b95a 100644 --- a/composer.json +++ b/composer.json @@ -48,10 +48,16 @@ "class": "LakeDrops\\Ahoy\\Plugin", "lakedrops": { "scripts": { - "lakedrops-ahoy": { + "ahoy": { "callback": "LakeDrops\\Ahoy\\Plugin::scripts", "description": "Scan LakeDrops plugins for ahoy scripts." } + }, + "ahoy": { + "ahoy": { + "usage": "Ahoy", + "imports": ["ahoy.yml"] + } } } } diff --git a/src/Handler.php b/src/Handler.php index f73d6099278406714ddc8e22c46615be860e21b0..b42bb888188cedc1cd19b28729721f56e9de7092 100644 --- a/src/Handler.php +++ b/src/Handler.php @@ -79,7 +79,7 @@ class Handler { foreach ($pluginSettings->getSubSubSection('extra', 'lakedrops', 'ahoy') as $command => $commands) { $ahoy['commands'][$command] = []; foreach ($commands['imports'] as $key => $import) { - $ahoy['commands'][$command]['imports'][$key] = './vendor/lakedrops/' . $pkg['name'] . '/' . $import; + $ahoy['commands'][$command]['imports'][$key] = './vendor/' . $pkg['name'] . '/' . $import; } } }