Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
bnomei authored and github-actions[bot] committed Aug 12, 2024
1 parent 6ff67b6 commit 21f1654
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions commands/out.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,24 @@
return [
'description' => 'Prints text to the terminal',
'args' => [
'msg' => [
'longPrefix' => 'msg',
'description' => 'Message',
'defaultValue' => '',
],
'level' => [
'prefix' => 'l',
'longPrefix' => 'level',
'description' => 'Message level like out/success/error',
'defaultValue' => 'out',
],
'time' => [
'prefix' => 't',
'longPrefix' => 'time',
'description' => 'Prefix message with timestamp',
'noValue' => true,
],
] + Janitor::ARGS, // page, file, user, site, data, model
'msg' => [
'longPrefix' => 'msg',
'description' => 'Message',
'defaultValue' => '',
],
'level' => [
'prefix' => 'l',
'longPrefix' => 'level',
'description' => 'Message level like out/success/error',
'defaultValue' => 'out',
],
'time' => [
'prefix' => 't',
'longPrefix' => 'time',
'description' => 'Prefix message with timestamp',
'noValue' => true,
],
] + Janitor::ARGS, // page, file, user, site, data, model
'command' => static function (CLI $cli): void {
$time = $cli->arg('time') ? '['.date('Y-m-d H:i:s').'] ' : '';
$level = match ($cli->arg('level')) {
Expand Down

0 comments on commit 21f1654

Please sign in to comment.