Skip to content

Commit

Permalink
make command executable
Browse files Browse the repository at this point in the history
  • Loading branch information
delboy1978uk committed Oct 11, 2019
1 parent b23b54f commit 3297d28
Showing 1 changed file with 35 additions and 22 deletions.
57 changes: 35 additions & 22 deletions bin/booty 100644 → 100755
@@ -1,24 +1,37 @@
#!/usr/bin/env php
<?php
if(count($argv) == 1)
{
echo "\n\nblank\n";
echo "======================================\n\n";
echo "Usage: ./blank command\n\n";
echo " \n";
exit;
}

require_once('../vendor/autoload.php');

echo "\n";

use Del;
try {
$x = new Blank();
echo $x->blah();
}
catch(Exception $e){
echo "There was a problem. \n".$e->getMessage()."\n\n";
}
echo "\n";

$path = file_exists('vendor/autoload.php') ? 'vendor/autoload.php' : '../../../autoload.php';

require_once $path;

use Del\Booty\BootyCommand;
use Del\Generator\ClearBuildsCommand;
use Symfony\Component\Console\Application;
use Symfony\Component\Console\Helper\HelperSet;
use Symfony\Component\Console\Helper\QuestionHelper;


$config = [];
if (file_exists('config/packages.php')) {
$config = require_once 'config/packages.php';
}

if (empty($config)) {
echo "No config/packages.php config found.\n";
} else {

$containerSvc = ContainerService::getInstance();
$helperSet = new HelperSet();
$helperSet->set(new QuestionHelper());
$booty = new BootyCommand();

$app = new Application('Booty Asset Manager');
$app->setHelperSet($helperSet);
$app->add($blankCommand);
$app->add($generatorCommand);
$app->add($mvcCommand);
$app->add($clearCommand);
$app->add($packageCommand);
$app->run();
}

0 comments on commit 3297d28

Please sign in to comment.