#!/usr/bin/env php setCatchExceptions(false); $app->add(new BackupCommand()); $app->add(new UpdateCommand()); $app->add(new InitCommand()); try { $app->run(); } catch (Exception $error) { $output = (new ConsoleOutput())->getErrorOutput(); $output->getFormatter()->setStyle('error', new OutputFormatterStyle('red')); $output->writeln("\nAn error occurred when attempting to run a command:\n"); $output->writeln($error->getMessage()); exit(1); }