Skip to content

Commit

Permalink
Create Command03.php
Browse files Browse the repository at this point in the history
  • Loading branch information
usernane committed Aug 20, 2024
1 parent be221b7 commit a83c899
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tests/webfiori/tests/cli/testCommands/Command03.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php
namespace webfiori\tests\cli\testCommands;

use webfiori\cli\CLICommand;

class Command03 extends CLICommand {
public function __construct() {
parent::__construct('run-another');
}

public function exec(): int {
$this->println('Running Sub Command');
$this->getOwner()->register(new Command01());
$this->execSubCommand('show-v', ['arg-3' => 'Ur']);
$this->println('Done');
return 0;
}

}

0 comments on commit a83c899

Please sign in to comment.