<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/cmd2-git.git/cmd2/__init__.py, branch 0.9.17</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>Added CompletionError exception class</title>
<updated>2019-09-20T20:35:17+00:00</updated>
<author>
<name>Kevin Van Brunt</name>
<email>kmvanbrunt@gmail.com</email>
</author>
<published>2019-09-20T20:35: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=1a34f350f7846ba1ed1397f862a2cba4fa7272b0'/>
<id>1a34f350f7846ba1ed1397f862a2cba4fa7272b0</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Renamed PyscriptBridge to PyBridge</title>
<updated>2019-07-20T20:19:04+00:00</updated>
<author>
<name>Kevin Van Brunt</name>
<email>kmvanbrunt@gmail.com</email>
</author>
<published>2019-07-20T20:19: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=89523d4fa0de91d5959497496dd4bc0a430da333'/>
<id>89523d4fa0de91d5959497496dd4bc0a430da333</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Renamed ArgParser to Cmd2ArgumentParser to make it clear it's a derived class of argparse.ArgumentParser</title>
<updated>2019-07-18T20:08:32+00:00</updated>
<author>
<name>Kevin Van Brunt</name>
<email>kmvanbrunt@gmail.com</email>
</author>
<published>2019-07-18T20:08: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=858476599f1d8ac9642c36f0a573cbd596e47a67'/>
<id>858476599f1d8ac9642c36f0a573cbd596e47a67</id>
<content type='text'>
when developers read the code in cmd2.py.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
when developers read the code in cmd2.py.
</pre>
</div>
</content>
</entry>
<entry>
<title>Renamed Cmd2ArgParser to ArgParser</title>
<updated>2019-07-12T16:42:04+00:00</updated>
<author>
<name>Kevin Van Brunt</name>
<email>kmvanbrunt@gmail.com</email>
</author>
<published>2019-07-12T16:42: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=9bb6b84608b6262d228c021c7115e1389eed33e3'/>
<id>9bb6b84608b6262d228c021c7115e1389eed33e3</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Moved all custom argparse classes intended for normal development to argparse_custom.py.</title>
<updated>2019-07-08T01:45:52+00:00</updated>
<author>
<name>Kevin Van Brunt</name>
<email>kmvanbrunt@gmail.com</email>
</author>
<published>2019-07-08T01:45:52+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/cmd2-git.git/commit/?id=bb2dd69bd04f5dccff9474c018eb6b6eea74c6af'/>
<id>bb2dd69bd04f5dccff9474c018eb6b6eea74c6af</id>
<content type='text'>
Lazy loading AutoCompleter in cmd2 instance methods to allow argparse_completer.py to import
cmd2.Cmd class. This Architecture makes more sense because AutoCompleter depends on cmd2.Cmd.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Lazy loading AutoCompleter in cmd2 instance methods to allow argparse_completer.py to import
cmd2.Cmd class. This Architecture makes more sense because AutoCompleter depends on cmd2.Cmd.
</pre>
</div>
</content>
</entry>
<entry>
<title>Added import of ansi.style directly into cmd2 namespace in __init__.py</title>
<updated>2019-06-29T19:47:23+00:00</updated>
<author>
<name>Todd Leonhardt</name>
<email>todd.leonhardt@gmail.com</email>
</author>
<published>2019-06-29T19:47:23+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/cmd2-git.git/commit/?id=31da70efe7160439eb6ab13f46739993f4d4cd7f'/>
<id>31da70efe7160439eb6ab13f46739993f4d4cd7f</id>
<content type='text'>
Also:
- Fixed an example in README which was using print() instead of self.poutput()
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also:
- Fixed an example in README which was using print() instead of self.poutput()
</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>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>Use setuptools_scm for version numbers</title>
<updated>2018-07-30T00:15:14+00:00</updated>
<author>
<name>kotfu</name>
<email>kotfu@kotfu.net</email>
</author>
<published>2018-07-30T00:15:14+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/cmd2-git.git/commit/?id=4da2d373319ef03d62dd5b0bbd1a8e7609a6c483'/>
<id>4da2d373319ef03d62dd5b0bbd1a8e7609a6c483</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Deprecated CmdResult helper class and promoted CommandResult</title>
<updated>2018-06-23T23:43:42+00:00</updated>
<author>
<name>Todd Leonhardt</name>
<email>todd.leonhardt@gmail.com</email>
</author>
<published>2018-06-23T23:43:42+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/cmd2-git.git/commit/?id=c8381601e4e3b31969ea6108617356572a7d1ca3'/>
<id>c8381601e4e3b31969ea6108617356572a7d1ca3</id>
<content type='text'>
These classes are subtly different, particularly in terms of their truthiness.

CmdResult
- attributes:  out, err, war
- truthy:  if err is falsy

CommandResult
- attributes:  stdout, stderr, data
- truthy:  if err is falsy AND data is not None

So CmdResult was oriented to provide essentially info, error, and warning messages to the user (typically as stirngs), whereas CommandResult is geared towards providing info and error messages to the user as strings in addition to data to the user in a command-specific format which is arbitrary other than it should never be None if the command succeeds.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These classes are subtly different, particularly in terms of their truthiness.

CmdResult
- attributes:  out, err, war
- truthy:  if err is falsy

CommandResult
- attributes:  stdout, stderr, data
- truthy:  if err is falsy AND data is not None

So CmdResult was oriented to provide essentially info, error, and warning messages to the user (typically as stirngs), whereas CommandResult is geared towards providing info and error messages to the user as strings in addition to data to the user in a command-specific format which is arbitrary other than it should never be None if the command succeeds.
</pre>
</div>
</content>
</entry>
</feed>
