Skip to content

Define sub command alias on dispatch()

Compare
Choose a tag to compare
@basuke basuke released this 24 Apr 16:48
· 6 commits to master since this release
$app = new App();
$app->dispatch('{COMMAND}', [
    'hi|hello' => function (App $app) {
        $app->task(function () {
            return 'HELLO';
        });
    }
]);