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 9659dd7 commit 21c7f94Copy full SHA for 21c7f94
examples/python_scripting.py
@@ -24,9 +24,7 @@
24
import os
25
26
import cmd2
27
-from cmd2 import (
28
- ansi,
29
-)
+from cmd2 import ansi
30
31
32
class CmdLineApp(cmd2.Cmd):
@@ -41,7 +39,7 @@ def __init__(self):
41
39
def _set_prompt(self):
42
40
"""Set prompt so it displays the current working directory."""
43
self.cwd = os.getcwd()
44
- self.prompt = ansi.style(f'{self.cwd} $ ', fg='cyan')
+ self.prompt = ansi.style(f'{self.cwd} $ ', fg=ansi.Fg.CYAN)
45
46
def postcmd(self, stop: bool, line: str) -> bool:
47
"""Hook method executed just after a command dispatch is finished.
0 commit comments