You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add support for Chalk color functions in prefix colors
Add support for all Chalk color functions: hex(), bgHex(), rgb(), bgRgb(),
ansi256(), bgAnsi256(), plus shorthand syntax #RRGGBB and bg#RRGGBB.
Functions and modifiers can be chained (e.g., rgb(255,136,0).bold,
black.bgHex(#00FF00).dim).
The CLI now correctly parses color arguments containing commas inside
function calls like rgb(255,255,0) by using a parenthesis-aware splitter.
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -105,6 +105,8 @@ Check out documentation and other usage examples in the [`docs` directory](./doc
105
105
Possible values: `index`, `pid`, `time`, `command`, `name`, `none`, or a template (eg `[{time} process: {pid}]`).
106
106
Default: the name of the process, or its index if no name is set.
107
107
-`prefixColors`: a list of colors or a string as supported by [Chalk](https://www.npmjs.com/package/chalk) and additional style `auto` for an automatically picked color.
108
+
Supports all Chalk color functions: `#RRGGBB`, `bg#RRGGBB`, `hex()`, `bgHex()`, `rgb()`, `bgRgb()`, `ansi256()`, `bgAnsi256()`.
109
+
Functions and modifiers can be chained (e.g., `rgb(255,136,0).bold`, `black.bgHex(#00FF00).dim`).
108
110
If concurrently would run more commands than there are colors, the last color is repeated, unless if the last color value is `auto` which means following colors are automatically picked to vary.
109
111
Prefix colors specified per-command take precedence over this list.
110
112
-`prefixLength`: how many characters to show when prefixing with `command`. Default: `10`
0 commit comments