summaryrefslogtreecommitdiff
path: root/examples/python_scripting.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2017-07-03 15:04:46 -0400
committerTodd Leonhardt <todd.leonhardt@gmail.com>2017-07-03 15:04:46 -0400
commit4ebab8889cc8546bf19bbd2981b2231547b45757 (patch)
treea3bf7d0ce6bc249ef252284b68712aa7257ec941 /examples/python_scripting.py
parentb581fd53ee6ae6c478eacbaa79cac9fcb68f6d76 (diff)
downloadcmd2-git-4ebab8889cc8546bf19bbd2981b2231547b45757.tar.gz
Add screenshot to front page
Also: - Updated pythong_scripting.py example to show how to colorize text - Updated contributing.md to show how to run code coverage in parallel using python-xdist and -nauto - Updated contributing.md to talk more about looking at unit test results within the PR
Diffstat (limited to 'examples/python_scripting.py')
-rwxr-xr-xexamples/python_scripting.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/python_scripting.py b/examples/python_scripting.py
index a0d36e36..ae04fda1 100755
--- a/examples/python_scripting.py
+++ b/examples/python_scripting.py
@@ -36,7 +36,7 @@ class CmdLineApp(Cmd):
def _set_prompt(self):
"""Set prompt so it displays the current working directory."""
self.cwd = os.getcwd()
- self.prompt = '{!r} $ '.format(self.cwd)
+ self.prompt = self.colorize('{!r} $ '.format(self.cwd), 'cyan')
def postcmd(self, stop, line):
"""Hook method executed just after a command dispatch is finished.