hotfix: Updated facts, added facts subcommand

This commit is contained in:
2016-12-11 16:13:33 +01:00
parent ac07dd3752
commit 2f1628b7d8
3 changed files with 77 additions and 4 deletions

View File

@ -0,0 +1,33 @@
<?php
namespace NoccyLabs\Hotfix\Command;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Question\ConfirmationQuestion;
use Symfony\Component\Console\Question\ChoiceQuestion;
use Symfony\Component\ExpressionLanguage\ExpressionLanguage;
use NoccyLabs\Hotfix\Hotfix\Loader;
use NoccyLabs\Hotfix\System\Facts;
class FactsCommand extends Command
{
protected function configure()
{
$this->setName("facts");
$this->setDescription("List the facts as collected on this system");
}
protected function execute(InputInterface $input, OutputInterface $output)
{
$facts = Facts::getSystemFacts()->getFlat();
print_r($facts);
}
}