Arquivos
wMind/mind3rd/API/programs/Clear.php
T
Felipe Nascimento de Moura aa8e451a58 - Refactor of all the MindCommand class
- Rebuilt of all programs to use the pattern of the new format designed for the new MindCommand class
2011-04-15 23:32:55 -03:00

25 linhas
527 B
PHP
Arquivo Executável

<?php
use Symfony\Component\Console\Input\InputArgument,
Symfony\Component\Console\Input\InputOption,
Symfony\Component\Console;
class Clear extends MindCommand implements program
{
public function __construct()
{
$this->setCommandName('clear')
->setDescription('Clears the console')
->setRestrict(false)
->setAction('action')
->setHelp(<<<EOT
Clears the console
EOT
);
$this->init();
}
public function action()
{
system('clear');
}
}