<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/cmd2-git.git/cmd2/pyscript_bridge.py, branch 0.9.4</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>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://git.baserock.org/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>
<entry>
<title>Added yet more type hinting</title>
<updated>2018-06-10T19:26:39+00:00</updated>
<author>
<name>Todd Leonhardt</name>
<email>todd.leonhardt@gmail.com</email>
</author>
<published>2018-06-10T19:26:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cmd2-git.git/commit/?id=6ba8d96321bf4052105f6f7fb6027d9e7073ea6c'/>
<id>6ba8d96321bf4052105f6f7fb6027d9e7073ea6c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Working on improving type hinting</title>
<updated>2018-06-09T22:57:13+00:00</updated>
<author>
<name>Todd Leonhardt</name>
<email>todd.leonhardt@gmail.com</email>
</author>
<published>2018-06-09T22:57:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cmd2-git.git/commit/?id=6f06dd97b30ba2bed40d580f3dc966dc9be103fd'/>
<id>6f06dd97b30ba2bed40d580f3dc966dc9be103fd</id>
<content type='text'>
Also:
- Refactored perror() to remove a rarely used optional argument which was unecessary
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also:
- Refactored perror() to remove a rarely used optional argument which was unecessary
</pre>
</div>
</content>
</entry>
<entry>
<title>Changed some unit tests to use pytest-mock instead of mocker/monkeypatch because they were failing for me.</title>
<updated>2018-05-19T19:54:08+00:00</updated>
<author>
<name>Eric Lin</name>
<email>anselor@gmail.com</email>
</author>
<published>2018-05-19T19:54:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cmd2-git.git/commit/?id=1c1da0273faf3ab2316b4af9281cf15869b3da20'/>
<id>1c1da0273faf3ab2316b4af9281cf15869b3da20</id>
<content type='text'>
Added detection of ==SUPPRESS== in subcommand group names to avoid printing it in the help hint.
Added some examples to tab_autocompletion to demonstrate how to tie in to cmd2 path_complete
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Added detection of ==SUPPRESS== in subcommand group names to avoid printing it in the help hint.
Added some examples to tab_autocompletion to demonstrate how to tie in to cmd2 path_complete
</pre>
</div>
</content>
</entry>
<entry>
<title>Added type hinting.</title>
<updated>2018-05-18T14:40:28+00:00</updated>
<author>
<name>Eric Lin</name>
<email>anselor@gmail.com</email>
</author>
<published>2018-05-18T14:40:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cmd2-git.git/commit/?id=4699451df8d0b0ff87b2332ab26498e372309ec4'/>
<id>4699451df8d0b0ff87b2332ab26498e372309ec4</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Suppresses stdout and stderr output by default when calling an application command from pyscript.</title>
<updated>2018-05-17T22:08:52+00:00</updated>
<author>
<name>Eric Lin</name>
<email>anselor@gmail.com</email>
</author>
<published>2018-05-17T22:08:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cmd2-git.git/commit/?id=ff89bad1b0dd2a608081db5a8fa299ef43d66bc5'/>
<id>ff89bad1b0dd2a608081db5a8fa299ef43d66bc5</id>
<content type='text'>
Added support for tab completing application commands in ipython shell
Updated unit tests scripts to set cmd_echo to True to validate command output.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Added support for tab completing application commands in ipython shell
Updated unit tests scripts to set cmd_echo to True to validate command output.
</pre>
</div>
</content>
</entry>
<entry>
<title>Some more pyscripting tweaks. Fixed issue with capturing ppaged output. Added pyscript bridge to ipy command.  Saving progress.</title>
<updated>2018-05-04T22:05:00+00:00</updated>
<author>
<name>Eric Lin</name>
<email>anselor@gmail.com</email>
</author>
<published>2018-05-04T22:05:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cmd2-git.git/commit/?id=ab8194e92b9c3728d8f86cb9c81de180b6884eee'/>
<id>ab8194e92b9c3728d8f86cb9c81de180b6884eee</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Added support for customizing the pyscript bridge pystate object name.</title>
<updated>2018-05-02T15:22:10+00:00</updated>
<author>
<name>Eric Lin</name>
<email>anselor@gmail.com</email>
</author>
<published>2018-05-02T15:22:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cmd2-git.git/commit/?id=2528fb5217063a5a98f7ea2b880bfc75e7f2428c'/>
<id>2528fb5217063a5a98f7ea2b880bfc75e7f2428c</id>
<content type='text'>
Removed all legacy pystate objects.
Changed default behavior to clear _last_result before each command
Added utility for creating named tuples with default values
Added tests to exercise new changes.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Removed all legacy pystate objects.
Changed default behavior to clear _last_result before each command
Added utility for creating named tuples with default values
Added tests to exercise new changes.
</pre>
</div>
</content>
</entry>
<entry>
<title>Added CommandResult which returns stdout, stderr, and command data</title>
<updated>2018-05-01T22:40:50+00:00</updated>
<author>
<name>Eric Lin</name>
<email>anselor@gmail.com</email>
</author>
<published>2018-05-01T22:40:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cmd2-git.git/commit/?id=bf5288829afde976dd213d15aa37704c3eb0a087'/>
<id>bf5288829afde976dd213d15aa37704c3eb0a087</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Added support for different argument modes and tests to validate.</title>
<updated>2018-05-01T22:03:37+00:00</updated>
<author>
<name>Eric Lin</name>
<email>anselor@gmail.com</email>
</author>
<published>2018-05-01T22:03:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cmd2-git.git/commit/?id=839d957128a4fcb7d6c2b58a4508eb38855e591f'/>
<id>839d957128a4fcb7d6c2b58a4508eb38855e591f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
