mirror of
https://github.com/inigoflores/ds-codigos-postales-ine-es.git
synced 2024-09-20 00:01:03 +02:00
18 lines
400 B
PHP
18 lines
400 B
PHP
<?php
|
|
|
|
namespace ConsoleKit\Tests;
|
|
|
|
class TestCommand extends \ConsoleKit\Command
|
|
{
|
|
public function execute(array $args, array $opts = array())
|
|
{
|
|
$name = 'unknown';
|
|
if (!empty($args)) {
|
|
$name = implode(' ', $args);
|
|
} else if (isset($opts['name'])) {
|
|
$name = $opts['name'];
|
|
}
|
|
$this->writeln(sprintf("hello %s!", $name));
|
|
}
|
|
}
|