Skip to content

Commit 697f1ca

Browse files
committed
update some
1 parent 688d83c commit 697f1ca

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

app/Helper/CliHelper.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,20 @@
1010
*/
1111
class CliHelper
1212
{
13+
public const PREFIX = '<cyan>[SWOFTCLI]</cyan>';
14+
1315
public static function info(string $msg): void
1416
{
15-
Show::writeln("[<cyan>SWOFTCLI</cyan>] <info>$msg</info>");
17+
Show::writeln(self::PREFIX . " <info>$msg</info>");
1618
}
1719

1820
public static function warn(string $msg): void
1921
{
20-
Show::writeln("[<cyan>SWOFTCLI</cyan>] <warning>$msg</warning>");
22+
Show::writeln(self::PREFIX . " <warning>$msg</warning>");
2123
}
2224

2325
public static function error(string $msg): void
2426
{
25-
Show::writeln("[<cyan>SWOFTCLI</cyan>] <error>$msg</error>");
27+
Show::writeln(self::PREFIX . " <error>$msg</error>");
2628
}
2729
}

0 commit comments

Comments
 (0)