diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-06-25 21:35:20 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-25 21:35:20 -0700 |
commit | 63aa28c284a9c854b950f4bf2dbe4aa438f21365 (patch) | |
tree | d32f008ca5804fa4766fcd9a344af4e2f5b2ed3b /examples/scripts/conditional.py | |
parent | 40dc4554c7321c33ca490b1c45e130000229d274 (diff) | |
parent | eb749b57c3ac8a3021fdd2fccc79fdfb18fca235 (diff) | |
download | cmd2-git-63aa28c284a9c854b950f4bf2dbe4aa438f21365.tar.gz |
Merge pull request #451 from python-cmd2/command_result
Deprecated CmdResult helper class and promoted CommandResult
Diffstat (limited to 'examples/scripts/conditional.py')
-rw-r--r-- | examples/scripts/conditional.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/scripts/conditional.py b/examples/scripts/conditional.py index 87cd10ac..d7ee5ea2 100644 --- a/examples/scripts/conditional.py +++ b/examples/scripts/conditional.py @@ -30,6 +30,7 @@ app('cd {}'.format(directory)) if self._last_result: print('\nContents of directory {!r}:'.format(directory)) app('dir -l') + print('{}\n'.format(self._last_result.data)) # Change back to where we were print('Changing back to original directory: {!r}'.format(original_dir)) |