summaryrefslogtreecommitdiffstats
path: root/aoc/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'aoc/utils.py')
-rw-r--r--aoc/utils.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/aoc/utils.py b/aoc/utils.py
new file mode 100644
index 0000000..a5de050
--- /dev/null
+++ b/aoc/utils.py
@@ -0,0 +1,6 @@
1# -*- coding: utf-8 -*-
2from typing import Callable
3
4
5def bold(item: str, condition: Callable[[], bool]):
6 return f"\033[36m{item}\033[0m" if condition() else item