summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Release v. 0.7.00.7.0Federico Ceratto2017-02-231-1/+1
|
* Minor PEP8 cleanup.Federico Ceratto2017-02-231-16/+6
|
* Merge pull request #54 from python-cmd2/doctest_goneTodd Leonhardt2017-02-232-28/+3
|\ | | | | Doctest gone
| * Updated tox.ini to no longer try to run cmd2.py directly as part of the tests.Todd Leonhardt2017-02-231-1/+0
| |
| * Removed inclusion and use of doctest since all doctests converted to pytest.Todd Leonhardt2017-02-231-27/+3
|/ | | | Since all doctests were converted to pytest unit tests in a previous commmit, this commit just removes the inclusion and usage of doctest. Now if cmd2.py is run as a main application, it just starts a bare-bones cmd2.Cmd() application with only built-in functionality instead of running the doctests which no longer exist.
* Merge pull request #53 from python-cmd2/empty_statementTodd Leonhardt2017-02-221-8/+11
|\ | | | | Changed EmptyStatement behavior so postparsing_postcmd() always runs.
| * Changed EmptyStatement behavior so postparsing_postcmd() always runs.Todd Leonhardt2017-02-221-8/+11
|/ | | | | | postparsing_postcmd() always runs now, even after an empty statement. This is to enable features such as updating the prompt due to notifications from a background thread even when the user just presses enter.
* Fix a Python 2 vs Python 3 bug in setup.pyTodd Leonhardt2017-02-181-20/+20
|
* Updated docs to discuss the new optional "ipy" command.Todd Leonhardt2017-02-181-0/+36
|
* Merge pull request #50 from python-cmd2/optional_ipythonTodd Leonhardt2017-02-182-3/+49
|\ | | | | Added optional ipy command
| * Changed a ModuleNotFoundErorr to ImportError for Python 2/3 compatibilityTodd Leonhardt2017-02-181-1/+1
| |
| * Added optional parameter to cmd2.Cmd.__init() to enable an "ipy" command.Todd Leonhardt2017-02-182-3/+49
|/ | | | | | If IPython is installed AND the __init__ initilizer is passed a "use_ipython" keyword argument set to "True", then and "ipy" command will be present. This ipy command starts an interactive IPython shell embedded within the cmd2 application. This IPython shell has access to all of the local variables (e.g. self), but any modifications made within it will NOT persist once it is exited. This IPython shell doesn't have tight integration with the Python interpreter running the cmd2 application like the Python interpreter available with the "py" command. However, due to features such as tab-completion and built-in help, the IPython shell is a lot more efficient for developers to use to debug their cmd2 applications - the introspection on self is extremely useful for getting to the bottom of thorny debugging problems.
* Fixed a minor typoTodd Leonhardt2017-02-181-1/+2
|
* Updated install instructions to include how to install from GitHub using pip.Todd Leonhardt2017-02-181-4/+42
|
* Finsished porting old doctests to pytest unit tests.Todd Leonhardt2017-02-181-80/+158
| | | | This concludes the fix for Issue #43.
* Merge pull request #49 from python-cmd2/doctest_to_pytestTodd Leonhardt2017-02-172-231/+370
|\ | | | | Converted most doctests to pytest
| * Step 2 of porting doctest to pytest.Todd Leonhardt2017-02-171-56/+122
| | | | | | | | Partial fix for Issue # 43
| * Converting doctests to pytestTodd Leonhardt2017-02-172-231/+304
|/ | | | | | Done with first stage. Still a lot more parsing tests to convert. It turns out the original problem wasn't a Python 2 vs Python 3 problem, but the fact that pyparsing changed the way the ParseResults.dump() command outputs strings - in version 2.1.10 it switched to putting strings in quotes.
* 3rd time's a charm ...Todd Leonhardt2017-02-171-1/+2
|
* Changing docs badge link back to previous one since it worked betterTodd Leonhardt2017-02-171-1/+1
|
* Changing link for latest docs badgeTodd Leonhardt2017-02-171-1/+1
|
* Merge pull request #48 from python-cmd2/help_typosTodd Leonhardt2017-02-161-6/+10
|\ | | | | Improve the help text of a couple commands
| * Improve the help text of a couple commandsTodd Leonhardt2017-02-161-6/+10
|/
* Merge pull request #46 from python-cmd2/select_indexTodd Leonhardt2017-02-161-2/+3
|\ | | | | Deal with select index out of range.
| * Deal with select index out of range.Todd Leonhardt2017-02-161-2/+3
|/ | | | This is a fix for issue #17
* Merge pull request #45 from python-cmd2/disable_redirectionTodd Leonhardt2017-02-162-14/+33
|\ | | | | Added member boolean flag to disable output redirection and piping.
| * Added member boolean flag to disable output redirection and piping.Todd Leonhardt2017-02-162-14/+33
|/ | | | | | This addresses Issue #15. Also added a unit test for this new feature and display of it's status in the cmdenvironment command.
* Merge pull request #44 from python-cmd2/cmds_at_invocationTodd Leonhardt2017-02-151-8/+25
|\ | | | | Add option to prevent processing of CLI args.
| * Added option to prevent processing of CLI args.Todd Leonhardt2017-02-151-3/+8
| | | | | | | | Addressed Issue #14.
| * Fixed how commands at invocation are dealt with.Todd Leonhardt2017-02-151-7/+19
|/ | | | Now the preloop() runs and the intro prints prior to executing any commands supplied as arguments on the command line.
* Fixed a minor typo in a commentTodd Leonhardt2017-02-131-38/+38
|
* Fix GitHub front-page formatting in README.rstTodd Leonhardt2017-02-121-21/+29
|
* Added installation instructions to documentation.Todd Leonhardt2017-02-123-9/+120
| | | | Also reorganized the GitHub README.rst front-page.
* Documentation fixes and updatesTodd Leonhardt2017-02-121-2/+23
| | | | | | - Fixed optparse links - Added note about plans to replace optparse with argparse - Added subsection about the functions which control argument parsing for commands with flags
* Documentation updatesTodd Leonhardt2017-02-127-48/+54
| | | | | | | | | | | Sphinx documenation updates, including: - Extensively re-wrote the "alternatives to cmd2" section as it was many years out of date - Reworded a few humorous sections in an attempt to be more professional - Removed reference to command synonyms/aliases which no longer exist - Added more detail in a couple places - Minor rewording and bugfixes throughout Also added a note to cmd2.py about the expected values for doctest only working for Python 2.7.
* Created several help_* methods for do_* methods.Todd Leonhardt2017-02-121-60/+133
| | | | | | Separated printing of help from docstrings for several commands. This is to separate the in-console help from the Sphinx documentation autodoc help.
* Improved some commentsTodd Leonhardt2017-02-121-48/+95
|
* Add six module to requirements for building docsTodd Leonhardt2017-02-123-4/+2
|
* Adding requirements.txt to doc section to try to fix autodoc on readthedocsTodd Leonhardt2017-02-122-1/+2
|
* Fixed doc conf.py so it correctly sets PYTHONPATH for autodoc feature.Todd Leonhardt2017-02-122-5/+17
|
* Refactored to move all cmd2.Cmd class member variables to beginning.Todd Leonhardt2017-02-115-97/+104
| | | | | | | | Also: - Added locals_in_py to settable parameters to match documentation. - Added pycon2010 slides back into doc build since they are referenced with :doc: - Fixed some references in the documentation - Updated unit tests accordingly
* Updated doc links to point to Python 3 docs for cmd module.Todd Leonhardt2017-02-115-7/+8
| | | | Also fixed references to the Script files section.
* docs now use the sphinx_rtd_theme.Todd Leonhardt2017-02-113-114/+81
| | | | The docs now use the custom HTML theme from Read the Docs so that when they are built locally they look the same as they will at https://cmd2.readthedocs.io/en/latest/
* Merge pull request #42 from python-cmd2/perror_improvementTodd Leonhardt2017-02-103-6/+49
|\ | | | | Perror improvement
| * Fixed a typo and added a unit test.Todd Leonhardt2017-02-103-2/+11
| |
| * Improved some logging for invalid syntax errors.Todd Leonhardt2017-02-101-4/+38
|/
* Merge pull request #39 from python-cmd2/parsing_experimentsTodd Leonhardt2017-02-084-40/+118
|\ | | | | Parsing improvements for commands using the options decorator
| * Added ability to set the new global variables which control parsing of ↵Todd Leonhardt2017-02-081-2/+31
| | | | | | | | arguments for @options commands.
| * Simplified a couple if'sTodd Leonhardt2017-02-071-2/+2
| |
| * Moved preloop() and postloop() calls from _cmdloop() to cmdloop().Todd Leonhardt2017-02-071-8/+4
| | | | | | | | | | | | In order to fix a problem with do_load() trying to do more than it should, refactored to move the preloop() and postloop() calls so they are not called when loading a script. This is so a script is simply a way to automate running several commands in a row and makes it safe for preloop() to create threads, connect to servers, and do other stateful things.