<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/cmd2-git.git/cmd2/decorators.py, branch codeql</title>
<subtitle>github.com: python-cmd2/cmd2.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cmd2-git.git/'/>
<entry>
<title>the with_argparse() decorator was incorrectly using a parsed statement object to search for the original function arguments. Switched to search for the original statement value instead</title>
<updated>2020-08-27T22:21:18+00:00</updated>
<author>
<name>Eric Lin</name>
<email>anselor@gmail.com</email>
</author>
<published>2020-08-27T21:07:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cmd2-git.git/commit/?id=47f8652fa467b2d140b1097b3167f968b0188451'/>
<id>47f8652fa467b2d140b1097b3167f968b0188451</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://git.baserock.org/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>Fixed RecursionError when printing an argparse.Namespace caused by custom attribute cmd2 was adding</title>
<updated>2020-08-25T14:10:14+00:00</updated>
<author>
<name>Kevin Van Brunt</name>
<email>kmvanbrunt@gmail.com</email>
</author>
<published>2020-08-25T05:46:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cmd2-git.git/commit/?id=9b5a98825a9b00807a40494e8c634c392077ccd2'/>
<id>9b5a98825a9b00807a40494e8c634c392077ccd2</id>
<content type='text'>
Added get_statement() function to argparse.Namespace which returns __statement__ attribute
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Added get_statement() function to argparse.Namespace which returns __statement__ attribute
</pre>
</div>
</content>
</entry>
<entry>
<title>When passing a ns_provider to an argparse command, will now attempt to resolve the correct CommandSet instance for self. If not, it'll fall back and pass in the cmd2 app</title>
<updated>2020-08-12T21:41:20+00:00</updated>
<author>
<name>Eric Lin</name>
<email>anselor@gmail.com</email>
</author>
<published>2020-08-12T18:51:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cmd2-git.git/commit/?id=133e71a5a3074fc21fa52532d00c4d2364964cd3'/>
<id>133e71a5a3074fc21fa52532d00c4d2364964cd3</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Breaking change: Removed cmd2 app as a required second parameter to</title>
<updated>2020-08-12T21:41:20+00:00</updated>
<author>
<name>Eric Lin</name>
<email>anselor@gmail.com</email>
</author>
<published>2020-08-12T17:08:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cmd2-git.git/commit/?id=774fb39d7e259d0679c573b0d893293f9ed9aed9'/>
<id>774fb39d7e259d0679c573b0d893293f9ed9aed9</id>
<content type='text'>
CommandSet command functions (do_, complete_, help_).
Renamed install_command_set and uninstall_command_set to
register_command_set and unregister_command_set.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
CommandSet command functions (do_, complete_, help_).
Renamed install_command_set and uninstall_command_set to
register_command_set and unregister_command_set.
</pre>
</div>
</content>
</entry>
<entry>
<title>Moved code which copies subparser's settings to _register_subcommands().</title>
<updated>2020-08-07T19:26:40+00:00</updated>
<author>
<name>Kevin Van Brunt</name>
<email>kmvanbrunt@gmail.com</email>
</author>
<published>2020-08-07T19:26:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cmd2-git.git/commit/?id=3ada4bd53925ca20fdeb16fa971814637dc42e4d'/>
<id>3ada4bd53925ca20fdeb16fa971814637dc42e4d</id>
<content type='text'>
Changed alias and macro commands to use as_subcommand_to() decorator.
Updated CommandSet subcommand example to use help and description text.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Changed alias and macro commands to use as_subcommand_to() decorator.
Updated CommandSet subcommand example to use help and description text.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixed prog value of subcommands added with as_subcommand_to() decorator.</title>
<updated>2020-08-07T18:53:56+00:00</updated>
<author>
<name>Kevin Van Brunt</name>
<email>kmvanbrunt@gmail.com</email>
</author>
<published>2020-08-07T18:53:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cmd2-git.git/commit/?id=2049496815bc0e46db2371f9173c0cef7496e706'/>
<id>2049496815bc0e46db2371f9173c0cef7496e706</id>
<content type='text'>
Fixed missing settings in subcommand parsers created with as_subcommand_to() decorator.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixed missing settings in subcommand parsers created with as_subcommand_to() decorator.
</pre>
</div>
</content>
</entry>
<entry>
<title>Marked with_arparser_and_unknown_args deprecated and consolidated</title>
<updated>2020-08-04T19:24:53+00:00</updated>
<author>
<name>Eric Lin</name>
<email>anselor@gmail.com</email>
</author>
<published>2020-08-04T17:46:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cmd2-git.git/commit/?id=1a82b37b6c23490b1d9127095e3ee4f2db21a85b'/>
<id>1a82b37b6c23490b1d9127095e3ee4f2db21a85b</id>
<content type='text'>
implementation as an option to with_argparser instead.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
implementation as an option to with_argparser instead.
</pre>
</div>
</content>
</entry>
<entry>
<title>Minor formatting fixes. Injecting a function into namespace objects before passing to command handlers to access sub-command handlers</title>
<updated>2020-08-04T17:38:08+00:00</updated>
<author>
<name>Eric Lin</name>
<email>anselor@gmail.com</email>
</author>
<published>2020-08-04T15:56:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cmd2-git.git/commit/?id=4c0bdad9acd578536436246023ae884755089040'/>
<id>4c0bdad9acd578536436246023ae884755089040</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Now maintains a command-&gt;CommandSet mapping and passes the CommandSet</title>
<updated>2020-08-04T17:38:08+00:00</updated>
<author>
<name>anselor</name>
<email>anselor@gmail.com</email>
</author>
<published>2020-08-01T20:26:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cmd2-git.git/commit/?id=9d309939286f4944cb083dfd4f320c442bc99d76'/>
<id>9d309939286f4944cb083dfd4f320c442bc99d76</id>
<content type='text'>
through to the ArgparseCompleter if one is registered.
For subcommands, the registered argparse instance for the subcommand is now tagged with the
CommandSet from which it originated.
If a CommandSet is detected, it's now passed in as 'self' for the
completion functions.
Fixes some issue found with removing a subcommand.
Adds additional tests.
Added a check to prevent removal of a CommandSet if it has commands with sub-commands
from another CommandSet bound to it.
Documentation improvements.
Standardized around using CommandSetRegistrationException during commandset install/uninstall related errors.
Added support for nested sub-command injection.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
through to the ArgparseCompleter if one is registered.
For subcommands, the registered argparse instance for the subcommand is now tagged with the
CommandSet from which it originated.
If a CommandSet is detected, it's now passed in as 'self' for the
completion functions.
Fixes some issue found with removing a subcommand.
Adds additional tests.
Added a check to prevent removal of a CommandSet if it has commands with sub-commands
from another CommandSet bound to it.
Documentation improvements.
Standardized around using CommandSetRegistrationException during commandset install/uninstall related errors.
Added support for nested sub-command injection.
</pre>
</div>
</content>
</entry>
</feed>
