aa8e451a58
- Rebuilt of all programs to use the pattern of the new format designed for the new MindCommand class
25 linhas
527 B
PHP
Arquivo Executável
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');
|
|
}
|
|
}
|