Skip to content

Commit 17e1317

Browse files
committed
set the default colorize color as white
Signed-off-by: Zen <[email protected]>
1 parent 6420119 commit 17e1317

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "zenlib"
7-
version = "3.0.1"
7+
version = "3.0.2"
88
authors = [
99
{ name="Desultory", email="[email protected]" },
1010
]

src/zenlib/util/colorize.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
__version__ = "0.1.0"
1+
__version__ = "0.1.1"
22

33
from enum import Enum
44

5-
65
ANSI_START = "\x1b["
76

7+
88
class Colors(Enum):
99
RED = 31
1010
GREEN = 32
@@ -28,6 +28,6 @@ def __str__(self):
2828
return f"{ANSI_START}{color_code}{bold_str}m"
2929

3030

31-
def colorize(text: str, color: str, bright=False, bold=False) -> str:
31+
def colorize(text: str, color="white", bright=False, bold=False) -> str:
3232
color_code = Colors[color.upper()].value
3333
return f"{ANSICode(color_code, bright, bold)}{text}{ANSICode(0)}"

0 commit comments

Comments
 (0)