#!/usr/bin/env php
<?php

require __DIR__ . '/../vendor/autoload.php';

use Symfony\Component\Console\Application;
use Magento\Mray\Console\Command;

$applicationData = json_decode(file_get_contents(__DIR__ . '/../composer.json'), true);

$application = new Application($applicationData['description'], $applicationData['version'] ?? 'dev');
$application->add(new Command\DownloadRepoPackages());
$application->add(new Command\IndexMagentoReleases());
$application->add(new Command\DownloadForApiIndex());

$application->run();
