<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/cmd2-git.git/examples/cmd_as_argument.py, branch mypy_explicit_export</title>
<subtitle>github.com: python-cmd2/cmd2.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/cmd2-git.git/'/>
<entry>
<title>Renamed use_ipython keyword parameter of cmd2.Cmd.__init__() to include_ipy.</title>
<updated>2021-03-30T19:05:20+00:00</updated>
<author>
<name>Kevin Van Brunt</name>
<email>kmvanbrunt@gmail.com</email>
</author>
<published>2021-03-26T17:56:33+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/cmd2-git.git/commit/?id=2397280cad072a27a51f5ec1cc64908039d14bd1'/>
<id>2397280cad072a27a51f5ec1cc64908039d14bd1</id>
<content type='text'>
Added include_py keyword parameter to cmd2.Cmd.__init__(). If False, then the py command will not be available.

Removed ability to run Python commands from the command line with py.

Made banners and exit messages of Python and IPython consistent.

Changed utils.is_text_file() to raise OSError if file cannot be read.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Added include_py keyword parameter to cmd2.Cmd.__init__(). If False, then the py command will not be available.

Removed ability to run Python commands from the command line with py.

Made banners and exit messages of Python and IPython consistent.

Changed utils.is_text_file() to raise OSError if file cannot be read.
</pre>
</div>
</content>
</entry>
<entry>
<title>Resolves comments from PR</title>
<updated>2021-03-18T22:26:20+00:00</updated>
<author>
<name>Eric Lin</name>
<email>anselor@gmail.com</email>
</author>
<published>2021-03-16T16:25:34+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/cmd2-git.git/commit/?id=8f981f37eddcccc919329245b85fd44d5975a6a7'/>
<id>8f981f37eddcccc919329245b85fd44d5975a6a7</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add black for automatic code format</title>
<updated>2021-02-01T03:29:57+00:00</updated>
<author>
<name>Todd Leonhardt</name>
<email>todd.leonhardt@gmail.com</email>
</author>
<published>2021-02-01T03:29:57+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/cmd2-git.git/commit/?id=f456b802754c3d1095b488d670bebba21018d823'/>
<id>f456b802754c3d1095b488d670bebba21018d823</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Added cmd2.utils.Settable to the cmd2 namespace and updated examples and docs</title>
<updated>2020-02-05T04:01:30+00:00</updated>
<author>
<name>Todd Leonhardt</name>
<email>todd.leonhardt@gmail.com</email>
</author>
<published>2020-02-05T04:01:30+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/cmd2-git.git/commit/?id=40722f10ace3107dcb4709008239ac8233ada30f'/>
<id>40722f10ace3107dcb4709008239ac8233ada30f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Renamed locals_in_py to self_in_py</title>
<updated>2020-01-28T03:49:34+00:00</updated>
<author>
<name>Todd Leonhardt</name>
<email>todd.leonhardt@gmail.com</email>
</author>
<published>2020-01-28T03:49:34+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/cmd2-git.git/commit/?id=415f1cb1c7dd5fbfe21cca0c6eea2eb998bbd1a0'/>
<id>415f1cb1c7dd5fbfe21cca0c6eea2eb998bbd1a0</id>
<content type='text'>
This more accurately reflects what it controls
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This more accurately reflects what it controls
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixed a bunch of examples which were broken due to moving DEFAULT_SHORTCUTS from cmd2.py to constants.py</title>
<updated>2019-06-16T15:43:32+00:00</updated>
<author>
<name>Todd Leonhardt</name>
<email>todd.leonhardt@gmail.com</email>
</author>
<published>2019-06-16T15:43:32+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/cmd2-git.git/commit/?id=c08f48e254be65b9899f4597cd88f479c6442646'/>
<id>c08f48e254be65b9899f4597cd88f479c6442646</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'master' into history_fixes</title>
<updated>2019-06-14T22:12:39+00:00</updated>
<author>
<name>Kevin Van Brunt</name>
<email>kmvanbrunt@gmail.com</email>
</author>
<published>2019-06-14T22:12:39+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/cmd2-git.git/commit/?id=85dbe035114330a15abd5af6e098ef6948fa6cb0'/>
<id>85dbe035114330a15abd5af6e098ef6948fa6cb0</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix history display issues</title>
<updated>2019-06-14T03:41:04+00:00</updated>
<author>
<name>Todd Leonhardt</name>
<email>todd.leonhardt@gmail.com</email>
</author>
<published>2019-06-14T03:41:04+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/cmd2-git.git/commit/?id=5635962154ac670a73c7c608f56ceb146e975f3f'/>
<id>5635962154ac670a73c7c608f56ceb146e975f3f</id>
<content type='text'>
Issues were two fold:
- HistoryItem statement.raw was getting mangled for multiline commands due to macro-related changes in _input_line_to_statement()
- HistoryItem pretty printing wasn't using rstrip() anymore in verbose mode

I added a couple unit tests in the process of getting here.  But we should add some explicit unit tests of _input_line_to_statement() for cases like:
- basic single-line command
- macro single-line command
- multiline command
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Issues were two fold:
- HistoryItem statement.raw was getting mangled for multiline commands due to macro-related changes in _input_line_to_statement()
- HistoryItem pretty printing wasn't using rstrip() anymore in verbose mode

I added a couple unit tests in the process of getting here.  But we should add some explicit unit tests of _input_line_to_statement() for cases like:
- basic single-line command
- macro single-line command
- multiline command
</pre>
</div>
</content>
</entry>
<entry>
<title>Removed support for cmd.cmdqueue</title>
<updated>2019-06-11T21:39:11+00:00</updated>
<author>
<name>Kevin Van Brunt</name>
<email>kmvanbrunt@gmail.com</email>
</author>
<published>2019-06-11T21:39:11+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/cmd2-git.git/commit/?id=77633bc4498d6f11b07ea0a3bd13d4830f809ff8'/>
<id>77633bc4498d6f11b07ea0a3bd13d4830f809ff8</id>
<content type='text'>
allow_cli_args is now an argument to __init__ instead of a cmd2 class member
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
allow_cli_args is now an argument to __init__ instead of a cmd2 class member
</pre>
</div>
</content>
</entry>
<entry>
<title>Refactor exit_code implementation</title>
<updated>2019-05-21T03:47:50+00:00</updated>
<author>
<name>Todd Leonhardt</name>
<email>todd.leonhardt@gmail.com</email>
</author>
<published>2019-05-21T03:47:50+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/cmd2-git.git/commit/?id=2f0dbf5bad19d96880e2ef795660db1b8f04cdc7'/>
<id>2f0dbf5bad19d96880e2ef795660db1b8f04cdc7</id>
<content type='text'>
cmd2.Cmd.cmdloop() now returns self.exit_code which should be an integer

Also:
- Refactored examples to call sys.exit(app.cmdloop()) in their __main__
- Running transcript tests now sets the exit_code accordingly based on success/failure
- Updated CHANGELOG
- Updated README
- Updated Sphinx docs
- Added unit test for case when transcript test fails
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
cmd2.Cmd.cmdloop() now returns self.exit_code which should be an integer

Also:
- Refactored examples to call sys.exit(app.cmdloop()) in their __main__
- Running transcript tests now sets the exit_code accordingly based on success/failure
- Updated CHANGELOG
- Updated README
- Updated Sphinx docs
- Added unit test for case when transcript test fails
</pre>
</div>
</content>
</entry>
</feed>
