use Symfony\Component\Console\Application;
use Cli\Commands\BackupCommand;
use Cli\Commands\InitCommand;
+use Cli\Commands\UpdateCommand;
// Get the directory of the CLI "entrypoint", adjusted to be the real
// location where running via a phar.
if (str_starts_with($scriptDir, 'phar://')) {
$scriptDir = dirname(Phar::running(false));
}
+// TODO - Add smarter strategy for locating install
+// (working directory or directory of running script or maybe passed option?)
$bsDir = dirname($scriptDir);
// Setup our CLI
$app = new Application('bookstack-system');
$app->add(new BackupCommand($bsDir));
+$app->add(new UpdateCommand($bsDir));
$app->add(new InitCommand());
try {