| @@ -5,7 +5,6 @@ | ||
| 5 | 5 | use Tarsana\Functional as F; | 
| 6 | 6 | use Tarsana\Functional\Stream; | 
| 7 | 7 | use Tarsana\Command\Environment; | 
| 8 | -use Tarsana\Syntax\Factory as S; | |
| 9 | 8 | use Tarsana\Command\TemplateLoader; | 
| 10 | 9 | use Tarsana\Command\Commands\HelpCommand; | 
| 11 | 10 | use Tarsana\Command\Syntax\SyntaxBuilder; | 
| @@ -328,7 +328,7 @@ | ||
| 328 | 328 | |
| 329 | 329 | else | 
| 330 | 330 | $this->args($this->syntax()->parse($args)) | 
| 331 | - ->execute(); | |
| 331 | + ->execute(); | |
| 332 | 332 | } | 
| 333 | 333 |          } catch (\Exception $e) { | 
| 334 | 334 | $this->error( | 
| @@ -5,9 +5,7 @@ | ||
| 5 | 5 | use Tarsana\Functional as F; | 
| 6 | 6 | use Tarsana\Command\SubCommand; | 
| 7 | 7 | use Tarsana\Syntax\ArraySyntax; | 
| 8 | -use Tarsana\Syntax\Factory as S; | |
| 9 | 8 | use Tarsana\Syntax\ObjectSyntax; | 
| 10 | -use Tarsana\Command\Syntax\SyntaxPrinter; | |
| 11 | 9 | |
| 12 | 10 | |
| 13 | 11 |  class HelpCommand extends SubCommand { | 
| @@ -35,15 +35,15 @@ discard block | ||
| 35 | 35 | $c = $this->console(); | 
| 36 | 36 | |
| 37 | 37 | $c->br() | 
| 38 | - ->green() | |
| 39 | - ->inline($command->name() . ' ') | |
| 40 | - ->yellow() | |
| 41 | - ->out($command->version()) | |
| 42 | - ->br() | |
| 43 | - ->out($command->description()) | |
| 44 | - ->br() | |
| 45 | - ->yellow() | |
| 46 | -          ->inline('Arguments: '); | |
| 38 | + ->green() | |
| 39 | + ->inline($command->name() . ' ') | |
| 40 | + ->yellow() | |
| 41 | + ->out($command->version()) | |
| 42 | + ->br() | |
| 43 | + ->out($command->description()) | |
| 44 | + ->br() | |
| 45 | + ->yellow() | |
| 46 | +            ->inline('Arguments: '); | |
| 47 | 47 | |
| 48 | 48 | $args = F\s(array_keys($command->syntax()->fields())) | 
| 49 | 49 |              ->then(F\join(' ')) | 
| @@ -67,9 +67,9 @@ discard block | ||
| 67 | 67 | ->get() * 2; | 
| 68 | 68 |              foreach ($command->subCommands() as $name => $cmd) { | 
| 69 | 69 | $c->tab() | 
| 70 | -                  ->padding($padding)->char(' ') | |
| 71 | -                  ->label("<green>{$name}</green>") | |
| 72 | - ->result($cmd->description()); | |
| 70 | +                    ->padding($padding)->char(' ') | |
| 71 | +                    ->label("<green>{$name}</green>") | |
| 72 | + ->result($cmd->description()); | |
| 73 | 73 | } | 
| 74 | 74 | } | 
| 75 | 75 | } | 
| @@ -86,8 +86,8 @@ discard block | ||
| 86 | 86 |              $c->out("(Required)"); | 
| 87 | 87 |          } else { | 
| 88 | 88 |              $c->inline("(default: ") | 
| 89 | - ->white()->inline(json_encode($syntax->getDefault())) | |
| 90 | -              ->yellow()->out(" )"); | |
| 89 | + ->white()->inline(json_encode($syntax->getDefault())) | |
| 90 | +                ->yellow()->out(" )"); | |
| 91 | 91 | } | 
| 92 | 92 | |
| 93 | 93 |          if ($syntax instanceof ArraySyntax) { | 
| @@ -1,7 +1,6 @@ | ||
| 1 | 1 | <?php namespace Tarsana\Command; | 
| 2 | 2 | |
| 3 | 3 | use Tarsana\Command\Command; | 
| 4 | -use Tarsana\Command\Commands\HelpCommand; | |
| 5 | 4 | |
| 6 | 5 | /** | 
| 7 | 6 | * A SubCommand which has a parent command and can access it. | 
| @@ -19,8 +19,8 @@ | ||
| 19 | 19 |      { | 
| 20 | 20 | $c = $this->parent(); | 
| 21 | 21 | $this->console | 
| 22 | - ->green()->inline($c->name()) | |
| 23 | -             ->white()->inline(' version ') | |
| 24 | - ->yellow()->out($c->version()); | |
| 22 | + ->green()->inline($c->name()) | |
| 23 | +                ->white()->inline(' version ') | |
| 24 | + ->yellow()->out($c->version()); | |
| 25 | 25 | } | 
| 26 | 26 | } |