We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 862d511 commit 8563795Copy full SHA for 8563795
cmd2/ansi.py
@@ -60,9 +60,9 @@ def colors() -> List[str]:
60
return [color.name for color in fg]
61
62
@staticmethod
63
- def get_value(color: str) -> str:
+ def get_value(name: str) -> str:
64
"""Retrieve color code by name string."""
65
- return fg.__members__[color].value
+ return fg.__members__[name].value
66
67
68
# Background colors
@@ -98,9 +98,9 @@ def colors() -> List[str]:
98
return [color.name for color in bg]
99
100
101
102
103
- return bg.__members__[color].value
+ return bg.__members__[name].value
104
105
106
FG_RESET = fg.reset.value
0 commit comments