From 21f1654d19c498155fe614ee2b6ed293f36f4426 Mon Sep 17 00:00:00 2001 From: bnomei Date: Mon, 12 Aug 2024 10:01:21 +0000 Subject: [PATCH] Fix styling --- commands/out.php | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/commands/out.php b/commands/out.php index 9f6cc95..1000de1 100644 --- a/commands/out.php +++ b/commands/out.php @@ -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')) {