2023-05-26 11:47:40 +00:00
|
|
|
#!/usr/bin/env php
|
|
|
|
<?php
|
2023-06-05 09:40:04 +00:00
|
|
|
require __DIR__ . '/vendor/autoload.php';
|
2023-05-31 14:34:35 +00:00
|
|
|
use Symfony\Component\Console\Application;
|
|
|
|
use Composer\InstalledVersions;
|
|
|
|
|
2023-05-26 11:47:40 +00:00
|
|
|
|
2023-05-31 09:00:20 +00:00
|
|
|
$package = \Composer\InstalledVersions::getRootPackage();
|
2023-05-26 11:47:40 +00:00
|
|
|
|
2023-05-31 09:00:20 +00:00
|
|
|
$application = new Application('backup', $package['version']);
|
2023-07-28 12:12:47 +00:00
|
|
|
try {
|
|
|
|
$application->add(new App\CommandBackup());
|
|
|
|
$application->add(new App\CommandShow());
|
2023-05-26 11:47:40 +00:00
|
|
|
|
2023-07-28 12:12:47 +00:00
|
|
|
$application->run();
|
|
|
|
} catch(Exception $e)
|
|
|
|
{
|
|
|
|
echo("Critical error: ". $e->getMessage());
|
|
|
|
}
|