diff options
| author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2021-01-31 22:29:57 -0500 |
|---|---|---|
| committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2021-01-31 22:29:57 -0500 |
| commit | f456b802754c3d1095b488d670bebba21018d823 (patch) | |
| tree | bf7011f585a8a35ab4cc7ff98aaeebed4de87f84 /examples/initialization.py | |
| parent | 918200c02d392c17862fff81bbf58820ed15c725 (diff) | |
| download | cmd2-git-f456b802754c3d1095b488d670bebba21018d823.tar.gz | |
Add black for automatic code format
Diffstat (limited to 'examples/initialization.py')
| -rwxr-xr-x | examples/initialization.py | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/examples/initialization.py b/examples/initialization.py index 76a136dd..293d8075 100755 --- a/examples/initialization.py +++ b/examples/initialization.py @@ -24,8 +24,12 @@ class BasicApp(cmd2.Cmd): CUSTOM_CATEGORY = 'My Custom Commands' def __init__(self): - super().__init__(multiline_commands=['echo'], persistent_history_file='cmd2_history.dat', - startup_script='scripts/startup.txt', use_ipython=True) + super().__init__( + multiline_commands=['echo'], + persistent_history_file='cmd2_history.dat', + startup_script='scripts/startup.txt', + use_ipython=True, + ) # Prints an intro banner once upon application startup self.intro = style('Welcome to cmd2!', fg=fg.red, bg=bg.white, bold=True) @@ -46,8 +50,9 @@ class BasicApp(cmd2.Cmd): self.foreground_color = 'cyan' # Make echo_fg settable at runtime - self.add_settable(cmd2.Settable('foreground_color', str, 'Foreground color to use with echo command', - choices=fg.colors())) + self.add_settable( + cmd2.Settable('foreground_color', str, 'Foreground color to use with echo command', choices=fg.colors()) + ) @cmd2.with_category(CUSTOM_CATEGORY) def do_intro(self, _): |
