#!/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()); }