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

$path = dirname(__FILE__) . "/../../../config/config.inc.php";
$isPsEnvironment = file_exists($path);

if ($isPsEnvironment) require_once $path;
$isPsEnvironment = defined("_PS_VERSION_");


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

use Ector\Cli\Commands\MagentoMigrationCommand;
use Ector\Cli\Commands\TestOutputCommand;
use Ector\Cli\Commands\DeleteMagentoMigration;
use Ector\Cli\Commands\CloneModulesCommand;
use Ector\Cli\Commands\GenerateProductsCommand;
use Symfony\Component\Console\Application;

$application = new Application();

// Register your commands here
$application->add(new MagentoMigrationCommand());
$application->add(new TestOutputCommand());
$application->add(new DeleteMagentoMigration());
$application->add(new CloneModulesCommand());
$application->add(new GenerateProductsCommand());

$application->run();
