<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/cmd2-git.git/examples/python_scripting.py, branch 0.9.5</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>Merge branch 'master' into colorize</title>
<updated>2018-09-25T14:09:13+00:00</updated>
<author>
<name>Todd Leonhardt</name>
<email>todd.leonhardt@gmail.com</email>
</author>
<published>2018-09-25T14:09:13+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/cmd2-git.git/commit/?id=b5780366e7421c928a2438530017a4a203a1408b'/>
<id>b5780366e7421c928a2438530017a4a203a1408b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Removed a Python3-only comment from an example since Python 2 is no longer supported</title>
<updated>2018-09-25T13:59:43+00:00</updated>
<author>
<name>Todd Leonhardt</name>
<email>todd.leonhardt@gmail.com</email>
</author>
<published>2018-09-25T13:59:43+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/cmd2-git.git/commit/?id=4c5c66633271c2d1968de4e437397a6d27f77ab7'/>
<id>4c5c66633271c2d1968de4e437397a6d27f77ab7</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Added optional color argument to poutput() for providing a color escape code to colorize the output with</title>
<updated>2018-09-24T15:13:42+00:00</updated>
<author>
<name>Todd Leonhardt</name>
<email>todd.leonhardt@gmail.com</email>
</author>
<published>2018-09-24T15:13: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=a2ad70bd79a78123d2bb67b1ff1ed0b815dd721d'/>
<id>a2ad70bd79a78123d2bb67b1ff1ed0b815dd721d</id>
<content type='text'>
Also:
- Added optional err_color and war_color arguments to perror() for providing color escape codes
- Removed usage of deprecated colorize() method within the examples
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also:
- Added optional err_color and war_color arguments to perror() for providing color escape codes
- Removed usage of deprecated colorize() method within the examples
</pre>
</div>
</content>
</entry>
<entry>
<title>Removed remaining type hints in docstrings</title>
<updated>2018-09-21T14:08:05+00:00</updated>
<author>
<name>Kevin Van Brunt</name>
<email>kmvanbrunt@gmail.com</email>
</author>
<published>2018-09-21T14:08:05+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/cmd2-git.git/commit/?id=0817978fcd67bc8e84369d163aff55c1a614b711'/>
<id>0817978fcd67bc8e84369d163aff55c1a614b711</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>
<entry>
<title>Fixed conditional.py script</title>
<updated>2018-05-27T01:42:02+00:00</updated>
<author>
<name>Todd Leonhardt</name>
<email>todd.leonhardt@gmail.com</email>
</author>
<published>2018-05-27T01:42:02+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/cmd2-git.git/commit/?id=906feb79ba54fde2b0635c321c659922559779f3'/>
<id>906feb79ba54fde2b0635c321c659922559779f3</id>
<content type='text'>
Also:
- Made self.locals_in_py = True for main.py and examples/python_scripting.py
    - This makes debugging easier in the embedded IPython shell provided by the opt-in ipy command
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also:
- Made self.locals_in_py = True for main.py and examples/python_scripting.py
    - This makes debugging easier in the embedded IPython shell provided by the opt-in ipy command
</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>
<entry>
<title>Removed the expensive imports from cmd2/__init__.py</title>
<updated>2018-04-25T15:40:33+00:00</updated>
<author>
<name>Eric Lin</name>
<email>anselor@gmail.com</email>
</author>
<published>2018-04-25T15:40:33+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/cmd2-git.git/commit/?id=e018bbd79b2ddc0cf2538dff84baa8b2bf460ccd'/>
<id>e018bbd79b2ddc0cf2538dff84baa8b2bf460ccd</id>
<content type='text'>
Added some shared definitions to cmd2/__init__.py -&gt; maybe there's a better place for these?
Figured out how to trick bash into showing argument hints. It's a bit weird.
Updated all of the tests and examples to import cmd2 resources from their new location without the automatic imports in cmd2/__init__.py
For #369
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Added some shared definitions to cmd2/__init__.py -&gt; maybe there's a better place for these?
Figured out how to trick bash into showing argument hints. It's a bit weird.
Updated all of the tests and examples to import cmd2 resources from their new location without the automatic imports in cmd2/__init__.py
For #369
</pre>
</div>
</content>
</entry>
<entry>
<title>Started removing dependency on six</title>
<updated>2018-04-15T21:26:29+00:00</updated>
<author>
<name>Todd Leonhardt</name>
<email>todd.leonhardt@gmail.com</email>
</author>
<published>2018-04-15T21:26: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=60dddb03d05ccf4088242a524e624f61782dd40f'/>
<id>60dddb03d05ccf4088242a524e624f61782dd40f</id>
<content type='text'>
Removed all dependency on six other than for six.moves.input

Also:
- Started removing code branches which were for Python 2 support
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Removed all dependency on six other than for six.moves.input

Also:
- Started removing code branches which were for Python 2 support
</pre>
</div>
</content>
</entry>
<entry>
<title>Addressed code review comments</title>
<updated>2018-03-28T03:03:35+00:00</updated>
<author>
<name>Kevin Van Brunt</name>
<email>kmvanbrunt@gmail.com</email>
</author>
<published>2018-03-28T03:03:35+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/cmd2-git.git/commit/?id=554561b70f899ad8ec38393b27eed646456cab62'/>
<id>554561b70f899ad8ec38393b27eed646456cab62</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
