summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* run_pyscript now passes a keyword arg to do_py instead of using a hidden ↵Kevin Van Brunt2020-04-212-10/+11
| | | | argparse flag
* argument_list and argparse wrappers now pass kwargs through to the wrapped ↵Kevin Van Brunt2020-04-201-7/+35
| | | | command function
* Merge pull request #923 from python-cmd2/ipy_stopKevin Van Brunt2020-04-205-24/+57
|\ | | | | ipy now returns its PyBridge's stop value
| * Updated error textKevin Van Brunt2020-04-202-5/+3
| |
| * cmd2 now considers ipy a pyscript environmentKevin Van Brunt2020-04-203-11/+22
| |
| * Consistently use :raises: instead of :raises (make sure there is a trailing ↵Todd Leonhardt2020-04-203-6/+6
| | | | | | | | colon)
| * Fix doc buildTodd Leonhardt2020-04-201-1/+1
| |
| * Updated change logKevin Van Brunt2020-04-201-0/+5
| |
| * ipy now returns its PyBridge's stop value so the main loop can know to stop. ↵Kevin Van Brunt2020-04-201-10/+29
|/ | | | This is consistent with the py command.
* Merge pull request #919 from python-cmd2/exception_handlingTodd Leonhardt2020-04-154-113/+97
|\ | | | | Exception handling
| * Removed exception handling around tempfile.TemporaryFile()Kevin Van Brunt2020-04-131-5/+1
| |
| * onecmd_plus_hooks() no longer handles updating any state data related to ↵Kevin Van Brunt2020-04-122-51/+56
| | | | | | | | | | | | redirection. For simplicity, it's all done in _redirect_output() and _restore_output().
| * Simplfied _redirect_output() by raising exception instead of returning boolKevin Van Brunt2020-04-114-65/+48
| |
| * Simplified onecmd_plus_hooks by reducing number of calls to ↵Kevin Van Brunt2020-04-111-6/+6
|/ | | | _run_cmdfinalization_hooks()
* Merge pull request #918 from python-cmd2/echo_updatesKevin Van Brunt2020-04-115-10/+27
|\ | | | | App echo updates
| * Fixed unit test nameKevin Van Brunt2020-04-111-1/+1
| |
| * Made some optional arguments with defaults keyword-only.Kevin Van Brunt2020-04-115-10/+27
|/ | | | | Added unit test for echo argument to pyscript app() command. Removed _relative_load from hidden commands since that command was renamed.
* Fix documentation typo found in PR #915Todd Leonhardt2020-04-091-1/+1
|
* Merge pull request #915 from python-cmd2/decorator_orderTodd Leonhardt2020-04-093-6/+71
|\ | | | | Added documentation about decorator order and updated an example
| * Fix extra space typoTodd Leonhardt2020-04-091-1/+1
| |
| * Added documentation about decorator order and updated an exampleTodd Leonhardt2020-04-093-6/+71
|/ | | | | Also: - Deal with warnings when building docs with Sphinx 3.0.0
* Merge pull request #911 from python-cmd2/fix_docsTodd Leonhardt2020-04-092-6/+1
|\ | | | | The continuation_prompt attribute was declared twice in cmd.rst
| * Removed the shebang from cmd2.py which was a hangover from when that file ↵Todd Leonhardt2020-04-081-1/+0
| | | | | | | | formerly had a __main__
| * The continuation_prompt attribute was declared twice in cmd.rst - this fixes ↵Todd Leonhardt2020-04-081-5/+1
|/ | | | and consolidates that
* Updated change log textKevin Van Brunt2020-04-061-1/+1
|
* Updating change log for release1.0.2Kevin Van Brunt2020-04-061-1/+1
|
* Merge pull request #910 from python-cmd2/ctrl-c-scriptKevin Van Brunt2020-03-266-22/+69
|\ | | | | Ctrl-C now stops a running text script instead of just the current script command
| * Updated commentKevin Van Brunt2020-03-261-1/+1
| |
| * Since runcode() catches most KeyboardInterrupts, just ignore any that make ↵Kevin Van Brunt2020-03-261-5/+3
| | | | | | | | | | | | their way up to our code. This is more consistent than raising the rare few that we see.
| * Updated change logKevin Van Brunt2020-03-261-1/+2
| |
| * Add unit tests for Ctrl-C stopping scripts/transcriptsKevin Van Brunt2020-03-262-0/+31
| |
| * Ctrl-C now stops a running text script instead of just the current script ↵Kevin Van Brunt2020-03-264-23/+40
|/ | | | command
* Merge pull request #908 from python-cmd2/shell_pyscriptKevin Van Brunt2020-03-203-0/+11
|\ | | | | do_shell integration with pyscript
| * do_shell() now saves the return code of the command it runs in ↵Kevin Van Brunt2020-03-203-0/+11
|/ | | | self.last_result for use in pyscripts
* Updating change log for release1.0.1Kevin Van Brunt2020-03-131-1/+1
|
* Merge pull request #906 from python-cmd2/parsing_exceptionTodd Leonhardt2020-03-137-21/+81
|\ | | | | Parsing exception
| * Updated change logKevin Van Brunt2020-03-121-1/+1
| |
| * Fixed docstringKevin Van Brunt2020-03-121-1/+1
| |
| * Added unit test for Cmd2ArgparseErrorKevin Van Brunt2020-03-121-1/+38
| |
| * Added Cmd2ShlexErrorKevin Van Brunt2020-03-125-20/+34
| |
| * Changed name of exception class as requested in code reviewKevin Van Brunt2020-03-053-7/+7
| |
| * Updated change logKevin Van Brunt2020-03-051-0/+4
| |
| * Prevent postcmd_hook from running when argparse failsKevin Van Brunt2020-03-053-10/+15
|/
* Added info to changelog in preparation for 1.0.0 release1.0.0Todd Leonhardt2020-03-011-0/+8
|
* Merge pull request #904 from python-cmd2/scripting_docskotfu2020-02-284-30/+66
|\ | | | | Update scripting docs. Closes #765.
| * Addressing PR feedback.kotfu2020-02-281-0/+9
| |
| * Merge branch 'master' into scripting_docskotfu2020-02-281-18/+24
| |\ | |/ |/|
* | Merge pull request #903 from python-cmd2/completion_docskotfu2020-02-281-18/+24
|\ \ | | | | | | Revise completion docs. Fixes #800. Updates #765.
| * | Revise completion docs. Fixes #800. Updates #765.kotfu2020-02-281-18/+24
|/ /
| * Update scripting docs. Closes #765.kotfu2020-02-284-30/+57
|/