fix: service generate includes yml files as well (haha)

This commit is contained in:
Andras Bacsai
2024-11-25 14:34:18 +01:00
parent e6ea4a0199
commit 11fb5a9e32
2 changed files with 19 additions and 1 deletions

View File

@@ -20,7 +20,10 @@ class ServicesGenerate extends Command
public function handle(): int
{
$serviceTemplatesJson = collect(glob(base_path('templates/compose/*.yaml')))
$serviceTemplatesJson = collect(array_merge(
glob(base_path('templates/compose/*.yaml')),
glob(base_path('templates/compose/*.yml'))
))
->mapWithKeys(function ($file): array {
$file = basename($file);
$parsed = $this->processFile($file);