Skip to content

Commit

Permalink
Update screenshot
Browse files Browse the repository at this point in the history
  • Loading branch information
tleonhardt committed Dec 15, 2024
1 parent 9659dd7 commit db15fed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Binary file modified cmd2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 2 additions & 4 deletions examples/python_scripting.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@
import os

import cmd2
from cmd2 import (
ansi,
)
from cmd2 import ansi


class CmdLineApp(cmd2.Cmd):
Expand All @@ -41,7 +39,7 @@ def __init__(self):
def _set_prompt(self):
"""Set prompt so it displays the current working directory."""
self.cwd = os.getcwd()
self.prompt = ansi.style(f'{self.cwd} $ ', fg='cyan')
self.prompt = ansi.style(f'{self.cwd} $ ', fg=ansi.Fg.CYAN)

def postcmd(self, stop: bool, line: str) -> bool:
"""Hook method executed just after a command dispatch is finished.
Expand Down

0 comments on commit db15fed

Please sign in to comment.