Jens True
1d898e350b
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
19 lines
465 B
PHP
Executable File
19 lines
465 B
PHP
Executable File
#!/usr/bin/env php
|
|
<?php
|
|
require __DIR__ . '/vendor/autoload.php';
|
|
use Symfony\Component\Console\Application;
|
|
use Composer\InstalledVersions;
|
|
|
|
|
|
$package = \Composer\InstalledVersions::getRootPackage();
|
|
|
|
$application = new Application('backup', $package['version']);
|
|
try {
|
|
$application->add(new App\CommandBackup());
|
|
$application->add(new App\CommandShow());
|
|
|
|
$application->run();
|
|
} catch(Exception $e)
|
|
{
|
|
echo("Critical error: ". $e->getMessage());
|
|
} |