Skip to content

Commit 1251a75

Browse files
committed
update
1 parent 1e98837 commit 1251a75

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

src/Console.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,17 @@ public static function writef(string $format, ...$args): int
104104
return self::write(\sprintf($format, ...$args));
105105
}
106106

107+
/**
108+
* Format and write message to terminal. like printf()
109+
* @param string $format
110+
* @param mixed ...$args
111+
* @return int
112+
*/
113+
public static function printf(string $format, ...$args): int
114+
{
115+
return self::write(\sprintf($format, ...$args));
116+
}
117+
107118
/**
108119
* Write raw data to stdout, will disable color render.
109120
* @param string|array $message

src/Traits/FormatOutputAwareTrait.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@
3535
* @method int liteDanger($messages, $quit = false)
3636
* @method int liteError($messages, $quit = false)
3737
*
38-
* @method int color($message, $style = 'info', $nl = true, array $opts = [])
39-
*
4038
* @method padding(array $data, string $title = null, array $opts = [])
4139
*
4240
* @method splitLine(string $title, string $char = '-', int $width = 0)

0 commit comments

Comments
 (0)