mirror of
https://github.com/kennethreitz/crayons.git
synced 2026-06-05 23:10:18 +00:00
feat: add function to reset replace codes
This commit is contained in:
@@ -168,3 +168,10 @@ def replace_colors(replace_dict):
|
||||
|
||||
assert isinstance(replace_dict, dict)
|
||||
REPLACE_COLORS = {k.upper(): v.upper() for k, v in replace_dict.items()}
|
||||
|
||||
|
||||
def reset_replace():
|
||||
"""Reset any set replace colors."""
|
||||
global REPLACE_COLORS
|
||||
|
||||
REPLACE_COLORS = {}
|
||||
|
||||
Reference in New Issue
Block a user