hotfix: Updated facts, added facts subcommand
This commit is contained in:
33
src/Command/FactsCommand.php
Normal file
33
src/Command/FactsCommand.php
Normal 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);
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user