Skip to content

Commit

Permalink
feat(castor): better aborted message
Browse files Browse the repository at this point in the history
  • Loading branch information
COil committed Oct 7, 2023
1 parent 6ef17b5 commit c064416
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions castor.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ function success(): void
io()->success('Done!');
}

function aborted(): void
{
io()->warning('Aborted.');
}

#[AsTask(namespace: 'symfony', description: 'Serve the application with the Symfony binary', )]
function start(): void
{
Expand Down Expand Up @@ -55,7 +60,7 @@ function go_prod(): void
return;
}

io()->comment('Aborted.');
aborted();
}

#[AsTask(namespace: 'symfony', description: 'Switch to the development environment')]
Expand All @@ -70,7 +75,7 @@ function go_dev(): void
return;
}

io()->comment('Aborted.');
aborted();
}

#[AsTask(name: 'all', namespace: 'test', description: 'Run all PHPUnit tests')]
Expand Down

0 comments on commit c064416

Please sign in to comment.