<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/cmd2-git.git/examples/paged_output.py, branch mypy_continued</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>Add in isort changes</title>
<updated>2021-02-01T04:24:47+00:00</updated>
<author>
<name>Todd Leonhardt</name>
<email>todd.leonhardt@gmail.com</email>
</author>
<published>2021-02-01T04:24:47+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/cmd2-git.git/commit/?id=9cb49fb2a3b980f97d5fb27ea37c6dfeee3b9ec4'/>
<id>9cb49fb2a3b980f97d5fb27ea37c6dfeee3b9ec4</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>Changed isort to force wrapping of imports to reduce merge conflicts from minor import changes.</title>
<updated>2021-01-22T15:40:50+00:00</updated>
<author>
<name>Eric Lin</name>
<email>anselor@gmail.com</email>
</author>
<published>2021-01-05T16:29: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=a3b1b6ddf81cdc0b253f15feeb167ff348afd14f'/>
<id>a3b1b6ddf81cdc0b253f15feeb167ff348afd14f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Replaced more pexcept uses with perror</title>
<updated>2019-06-25T18:05:20+00:00</updated>
<author>
<name>Kevin Van Brunt</name>
<email>kmvanbrunt@gmail.com</email>
</author>
<published>2019-06-25T18:05:20+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/cmd2-git.git/commit/?id=36c310f9311bc9a48428950a9532934ffc3f45f2'/>
<id>36c310f9311bc9a48428950a9532934ffc3f45f2</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Initial Commit for Issue 698</title>
<updated>2019-06-25T00:54:15+00:00</updated>
<author>
<name>xNinjaKittyx</name>
<email>sangbumahn@gmail.com</email>
</author>
<published>2019-06-25T00:54:15+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/cmd2-git.git/commit/?id=e8206628eefe8234cb5118807c6f40e983c2a316'/>
<id>e8206628eefe8234cb5118807c6f40e983c2a316</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</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>
<entry>
<title>Fix flake8 issues</title>
<updated>2018-12-06T06:24:19+00:00</updated>
<author>
<name>Todd Leonhardt</name>
<email>todd.leonhardt@gmail.com</email>
</author>
<published>2018-12-06T06:24:19+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/cmd2-git.git/commit/?id=c689e74fed45bf1a7b2908defc343d35f31dff71'/>
<id>c689e74fed45bf1a7b2908defc343d35f31dff71</id>
<content type='text'>
This commit contains a very large number of trivial changes in order to fix flake8 errors and warnings.  Predominantly these are whitespace changes.

Additionally, the build for Python 3.7 on TravisCI has been tweaked to fail if there are any flake8 errors using the following commandline:
* flake8 . --count --ignore=E252 --max-complexity=31 --max-line-length=127 --show-source --statistics
NOTE: In the future the max cyclomatic complexity should be lowered, but some improvements need to be made first.

One flake8 error is being ignored entirely:
* E252 missing whitespace around parameter equals
    * ignored because it doesn't correctly deal with default argument values after a type hint

A few flake8 errors are being selectively ignored in certain files:
* C901 fuction is too complex
    * ignored in argparse_completer.py because the complex code is an override of argparse complexity
* E302 expected 2 blank lines after ...
    * ignored in all unit test files for convenience
* F401 module imported but unused
    * ignored in cmd2/__init__.py because imports are for convenience of cmd2 developers and backwards compatibility
* F821 undefined name
    * ignored in cmd2 script files which are intended to run only within cmd2 applications via pyscript where "app" and "cmd" are defined
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This commit contains a very large number of trivial changes in order to fix flake8 errors and warnings.  Predominantly these are whitespace changes.

Additionally, the build for Python 3.7 on TravisCI has been tweaked to fail if there are any flake8 errors using the following commandline:
* flake8 . --count --ignore=E252 --max-complexity=31 --max-line-length=127 --show-source --statistics
NOTE: In the future the max cyclomatic complexity should be lowered, but some improvements need to be made first.

One flake8 error is being ignored entirely:
* E252 missing whitespace around parameter equals
    * ignored because it doesn't correctly deal with default argument values after a type hint

A few flake8 errors are being selectively ignored in certain files:
* C901 fuction is too complex
    * ignored in argparse_completer.py because the complex code is an override of argparse complexity
* E302 expected 2 blank lines after ...
    * ignored in all unit test files for convenience
* F401 module imported but unused
    * ignored in cmd2/__init__.py because imports are for convenience of cmd2 developers and backwards compatibility
* F821 undefined name
    * ignored in cmd2 script files which are intended to run only within cmd2 applications via pyscript where "app" and "cmd" are defined
</pre>
</div>
</content>
</entry>
<entry>
<title>Altered behavior further to lean towards giving the developer more power over the end user</title>
<updated>2018-06-16T16:44:36+00:00</updated>
<author>
<name>Todd Leonhardt</name>
<email>todd.leonhardt@gmail.com</email>
</author>
<published>2018-06-16T16:44:36+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/cmd2-git.git/commit/?id=e3672dfec9c7f0919a726b3e105f06b9474b630f'/>
<id>e3672dfec9c7f0919a726b3e105f06b9474b630f</id>
<content type='text'>
Specifically:
- PAGER environment variable is not used by default to set cmd2.Cmd.pager
    - This is done to ensure a consistent behavior of cmd2 applications across users by default

Developers are free to set pager and pager_chop in the __init__() for their class derived from cmd2.Cmd differently to ensure whatever behavior they desire.

Also:
- Updated the paged_output.py example to demonstrate using ppaged() with both wrapped and chopped/truncated text
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Specifically:
- PAGER environment variable is not used by default to set cmd2.Cmd.pager
    - This is done to ensure a consistent behavior of cmd2 applications across users by default

Developers are free to set pager and pager_chop in the __init__() for their class derived from cmd2.Cmd differently to ensure whatever behavior they desire.

Also:
- Updated the paged_output.py example to demonstrate using ppaged() with both wrapped and chopped/truncated text
</pre>
</div>
</content>
</entry>
<entry>
<title>Added pager settable parameter to control the command used to display paged output</title>
<updated>2018-06-12T00:48:03+00:00</updated>
<author>
<name>Todd Leonhardt</name>
<email>todd.leonhardt@gmail.com</email>
</author>
<published>2018-06-12T00:48:03+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/cmd2-git.git/commit/?id=0d4e633e8e0698cecc851af2f8967b6ead0e748b'/>
<id>0d4e633e8e0698cecc851af2f8967b6ead0e748b</id>
<content type='text'>
Also:
- ppaged() now uses the pager settable parameter
- By default the pager settable parameter uses the PAGER environment variable if present
- If PAGER environment variable is not present, pager gets set to:
    - "less -SXRF" on POSIX OSes (macOS and Linux)
    - "more" on Windows
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also:
- ppaged() now uses the pager settable parameter
- By default the pager settable parameter uses the PAGER environment variable if present
- If PAGER environment variable is not present, pager gets set to:
    - "less -SXRF" on POSIX OSes (macOS and Linux)
    - "more" on Windows
</pre>
</div>
</content>
</entry>
<entry>
<title>Standardize cmd2 imports in tests and examples</title>
<updated>2018-05-24T03:16:17+00:00</updated>
<author>
<name>kotfu</name>
<email>kotfu@kotfu.net</email>
</author>
<published>2018-05-24T03:16:17+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/cmd2-git.git/commit/?id=6780baa83457f7e99ba3a9c4f6a3c27701326ac5'/>
<id>6780baa83457f7e99ba3a9c4f6a3c27701326ac5</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
