<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/cmd2-git.git/cmd2/__init__.py, branch black</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 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>The functions cmd2 adds to Namespaces (get_statement() and get_handler()) are now</title>
<updated>2020-08-26T21:52:34+00:00</updated>
<author>
<name>Kevin Van Brunt</name>
<email>kmvanbrunt@gmail.com</email>
</author>
<published>2020-08-25T20:11:49+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/cmd2-git.git/commit/?id=478ea83336a4d1659ad06ef365db3dc5e051e46d'/>
<id>478ea83336a4d1659ad06ef365db3dc5e051e46d</id>
<content type='text'>
Cmd2AttributeWrapper objects named cmd2_statement and cmd2_handler. This makes it
easy to filter out which attributes in an argparse.Namespace were added by cmd2.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Cmd2AttributeWrapper objects named cmd2_statement and cmd2_handler. This makes it
easy to filter out which attributes in an argparse.Namespace were added by cmd2.
</pre>
</div>
</content>
</entry>
<entry>
<title>Verify that a completer function is defined in a CommandSet before</title>
<updated>2020-08-06T20:01:19+00:00</updated>
<author>
<name>Eric Lin</name>
<email>anselor@gmail.com</email>
</author>
<published>2020-08-05T19:08:37+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/cmd2-git.git/commit/?id=62eccdac73d852d3ab9df06497bc8c9063e3d283'/>
<id>62eccdac73d852d3ab9df06497bc8c9063e3d283</id>
<content type='text'>
passing it a CommandSet instance.
Search for a CommandSet instance that matches the completer's parent
class type.`

Resolves Issue #967

Renamed isolated_tests directory to tests_isolated for better visual grouping. Added some exception documentation
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
passing it a CommandSet instance.
Search for a CommandSet instance that matches the completer's parent
class type.`

Resolves Issue #967

Renamed isolated_tests directory to tests_isolated for better visual grouping. Added some exception documentation
</pre>
</div>
</content>
</entry>
<entry>
<title>Adds support for injectable subcommands as part of CommandSet</title>
<updated>2020-08-04T17:38:08+00:00</updated>
<author>
<name>Eric Lin</name>
<email>anselor@gmail.com</email>
</author>
<published>2020-07-27T15:43:16+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/cmd2-git.git/commit/?id=3a6db395cb28b5b13dde38284dc22791583012fa'/>
<id>3a6db395cb28b5b13dde38284dc22791583012fa</id>
<content type='text'>
load/unload.
Updated examples and documentation to include discussion of injectable
sub-commands.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
load/unload.
Updated examples and documentation to include discussion of injectable
sub-commands.
</pre>
</div>
</content>
</entry>
<entry>
<title>Removed support for functions outside of CommandSets</title>
<updated>2020-08-04T17:38:08+00:00</updated>
<author>
<name>Eric Lin</name>
<email>anselor@gmail.com</email>
</author>
<published>2020-07-21T21:18:38+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/cmd2-git.git/commit/?id=c05d2b0480f284a83dfe868b1aad3d780174c289'/>
<id>c05d2b0480f284a83dfe868b1aad3d780174c289</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Some minor cleanup of how imports work. Fixed issue with help documentation for CommandSet commands.</title>
<updated>2020-08-04T17:38:08+00:00</updated>
<author>
<name>Eric Lin</name>
<email>anselor@gmail.com</email>
</author>
<published>2020-06-13T00:44:10+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/cmd2-git.git/commit/?id=6da2cf30311f97d23a7121f8c02f9123674194b4'/>
<id>6da2cf30311f97d23a7121f8c02f9123674194b4</id>
<content type='text'>
Issue #943
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Issue #943
</pre>
</div>
</content>
</entry>
<entry>
<title>Added type annotations for fields in cmd2.Cmd.</title>
<updated>2020-07-21T20:59:24+00:00</updated>
<author>
<name>Eric Lin</name>
<email>anselor@gmail.com</email>
</author>
<published>2020-07-16T21:29: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=0b64604eb9a370267aaca2a045378a2db5eaebcb'/>
<id>0b64604eb9a370267aaca2a045378a2db5eaebcb</id>
<content type='text'>
Cleaned up docstring in external test plugin
Updated some initialization to match new approach for version info discovery.
Tagged some IDE-only lines as no-cover
Adds plugin coverage reporting.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Cleaned up docstring in external test plugin
Updated some initialization to match new approach for version info discovery.
Tagged some IDE-only lines as no-cover
Adds plugin coverage reporting.
</pre>
</div>
</content>
</entry>
<entry>
<title>replace pkg_resources with importlib.metadata</title>
<updated>2020-07-12T22:42:40+00:00</updated>
<author>
<name>Doug Hellmann</name>
<email>doug@doughellmann.com</email>
</author>
<published>2020-07-12T22:42:40+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/cmd2-git.git/commit/?id=859d45bf8f7254858fbfb6167fe073479e712cfd'/>
<id>859d45bf8f7254858fbfb6167fe073479e712cfd</id>
<content type='text'>
Importing pkg_resources has a side-effect of scanning every installed
distribution on sys.path to load the metadata, especially the entry
points defined in the packages. This can have a significant
launch-time cost for command line applications when there are a lot of
distributions to scan.

Since cmd2 is only using pkg_resources to find the version of the
installed package, pkg_resources can be replaced with
importlib.metadata. The implementation in the new library is
significantly faster because it goes immediately to the metadata file
for the requested distribution, instead of scanning all of them. There
are also no import-time side-effects.

importlib.metadata is a new standard library module starting with
python 3.8. For earlier versions, a compatible library has been
released to PyPI as 'importlib_metadata'. This change adds the new
dependency with a qualifier so that it is only applied to older
versions of python, and then updates the places that were importing
pkg_resources to look for the different versions of the new library
instead. The documentation configuration is changed to import cmd2
itself to get its version, since the package has to be installed for
the metadata to be available anyway.

Signed-off-by: Doug Hellmann &lt;doug@doughellmann.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Importing pkg_resources has a side-effect of scanning every installed
distribution on sys.path to load the metadata, especially the entry
points defined in the packages. This can have a significant
launch-time cost for command line applications when there are a lot of
distributions to scan.

Since cmd2 is only using pkg_resources to find the version of the
installed package, pkg_resources can be replaced with
importlib.metadata. The implementation in the new library is
significantly faster because it goes immediately to the metadata file
for the requested distribution, instead of scanning all of them. There
are also no import-time side-effects.

importlib.metadata is a new standard library module starting with
python 3.8. For earlier versions, a compatible library has been
released to PyPI as 'importlib_metadata'. This change adds the new
dependency with a qualifier so that it is only applied to older
versions of python, and then updates the places that were importing
pkg_resources to look for the different versions of the new library
instead. The documentation configuration is changed to import cmd2
itself to get its version, since the package has to be installed for
the metadata to be available anyway.

Signed-off-by: Doug Hellmann &lt;doug@doughellmann.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Added SkipPostcommandHooks exception and made Cmd2ArgparseError inherit from it.</title>
<updated>2020-05-07T18:32:29+00:00</updated>
<author>
<name>Kevin Van Brunt</name>
<email>kmvanbrunt@gmail.com</email>
</author>
<published>2020-05-07T18:32:29+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/cmd2-git.git/commit/?id=c50db52da00f4e544a6b3a19ee5b0f54e8503914'/>
<id>c50db52da00f4e544a6b3a19ee5b0f54e8503914</id>
<content type='text'>
Both exception classes have been added to the public API.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Both exception classes have been added to the public API.
</pre>
</div>
</content>
</entry>
<entry>
<title>Moved categorize() to utils.py and made set_parser_prog() non-public</title>
<updated>2020-02-20T17:33:23+00:00</updated>
<author>
<name>Kevin Van Brunt</name>
<email>kmvanbrunt@gmail.com</email>
</author>
<published>2020-02-20T17:33: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=157efc589cae43e5fb37ac38575d8cdfcd11c9b8'/>
<id>157efc589cae43e5fb37ac38575d8cdfcd11c9b8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
