Rename binary file and make it executable

This commit is contained in:
Oliver Davies 2023-01-21 20:47:25 +00:00
parent 83cb16a818
commit b1da05e9cf

22
bin/build-configs Executable file
View file

@ -0,0 +1,22 @@
#!/usr/bin/env php
<?php
use OliverDaviesLtd\BuildConfigs\Console\Command\BuildConfigurationCommand;
use Symfony\Component\Console\Application;
use Symfony\Component\Filesystem\Filesystem;
use Twig\Environment;
use Twig\Loader\FilesystemLoader;
require __DIR__ . '/../vendor/autoload.php';
$filesystem = new Filesystem();
$twig = new Environment(new FilesystemLoader([__DIR__.'/../templates']));
$application = new Application();
$application->addCommands([
new BuildConfigurationCommand($twig, $filesystem),
]);
$application->setDefaultCommand('build-configs', true);
$application->run();