summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Removed broken link from docs0.7.8Todd Leonhardt2017-11-081-2/+1
|
* Fixed incorrect http link in the READMETodd Leonhardt2017-11-082-3/+3
|
* Merge pull request #231 from python-cmd2/pyperclip_versionTodd Leonhardt2017-11-0827-740/+37
|\ | | | | Added fix for changes in pyperclip project structure in latest version
| * Added fix for changes in pyperclip project structure in the most recent versionTodd Leonhardt2017-11-0827-740/+37
|/ | | | | | | | | Also included a number of minor maintenance updates: - Bumped version to 0.7.8 in preparation for upcoming release - Updated Readme.md to add link to slides from recent Florida PyCon talk about cmd2 - Updated documentation on integrating cmd2 with other event loops to use newer runcmds_plus_hooks() method instead of legacy onecmds_plus_hooks method which doesn't properly deal with load commands - Deleted old files which were used to prepare for a PyCon 2010 presentation - Updated ChangeLog regarding this bug fix
* Merge pull request #228 from python-cmd2/edit_index_bugTodd Leonhardt2017-09-232-15/+81
|\ | | | | Fixed a bug when edit is passed an integer outside the range of history indices
| * Removed a conditional which was made redundant by an outer conditional that ↵Todd Leonhardt2017-09-231-4/+0
| | | | | | | | got added
| * Added some unit tests to cover new codeTodd Leonhardt2017-09-231-8/+56
| |
| * Fixed a bug when edit is passed a large negative integer in quotesTodd Leonhardt2017-09-231-3/+21
| | | | | | | | | | | | Fixed a weird corner case. Also added some comments to do_edit to better explain what the code is doing.
| * Fixed a bug which occurred when edit was called with an integer index larger ↵Todd Leonhardt2017-09-231-7/+11
|/ | | | | | | | | than the length of the history Previously a edit was creating a file named 'None' in this case. Now an error is printed to the screen and no editor is opened. Also did some miscellaneous cleanup based on PyCharm warnings.
* Hopefully this fixes a bug which is causing autodoc to fail to add method ↵Todd Leonhardt2017-09-232-0/+3
| | | | | | | info on readthedocs I can build the docs locally and it works fine, but the autodoc part of Sphinx was failing on readthedocs - and it was failing due to pyperclip not being present
* Merge pull request #227 from alevy03/support-load-in-onecmd_plus_hooksTodd Leonhardt2017-09-226-13/+109
|\ | | | | Provide method to run multiple commands w/o a cmdloop.
| * Merge branch 'master' into support-load-in-onecmd_plus_hooksTodd Leonhardt2017-09-226-5/+53
| |\ | |/ |/|
* | Merge pull request #226 from python-cmd2/comment_grammarTodd Leonhardt2017-09-226-5/+53
|\ \ | | | | | | Improved documentation for how a user can modify comment grammar/style
| * | Improved documentation for how a user can modify comment grammar/styleTodd Leonhardt2017-09-226-5/+53
|/ / | | | | | | | | | | | | Also: - Added arg_print.py example to demonstrate this - Bumped version to 0.7.8a - Updated CHANGELOG
| * Provide method to run multiple commands w/o a cmdloop.Alfred Levy2017-09-226-13/+109
|/ | | | | | | | | | | | runcmds_plus_hooks can accept multiple commands process the command queue to deal with subsequent commands loaded from scripts without requiring a command loop. This better supports a one-off batch processing scenario. Also fixed the insertion order of commands placed in the command queue by load and _relative_load so that script commands are run in the expected order. Minor tweak to setup instructions in CONTRIBUTING.md to include pyperclip in prerequisites.
* Merge pull request #223 from python-cmd2/poutput_falsyTodd Leonhardt2017-09-052-4/+33
|\ | | | | Improved poutput() so that it can print falsy things
| * Improved poutput() so that it can print an integer zero and other falsy thingsTodd Leonhardt2017-09-052-4/+33
|/ | | | | | | The poutput() function has been ruggedized so that it has a better conditional check so that it will actually print things which are "falsy" but are still convertible to a string. A few unit tests have been added specifically for the poutput function.
* Merge pull request #221 from python-cmd2/settings-documentationTodd Leonhardt2017-08-282-41/+71
|\ | | | | Revise environment setting documentation
| * Revise environment setting documentationkotfu2017-08-282-41/+71
|/
* Updated CHANGELOG0.7.7Todd Leonhardt2017-08-251-1/+3
|
* Merge pull request #220 from python-cmd2/piped_input_improvementsTodd Leonhardt2017-08-242-14/+136
|\ | | | | Piped input now properly honors the echo setting
| * Pick up a few more lines of test coverageJared Crapo2017-08-231-5/+7
| |
| * Use context managers and decorators for mocksJared Crapo2017-08-231-33/+27
| | | | | | | | | | | | Mocks of six.moves.input() and sys.stdin.isatty() now use either a context manager or a decorator. These wrappers make sure to put the functions back to their unmocked values when the test is done. This change appears to have solved the undeterministic test results.
| * Removed unused capsys fixturesJared Crapo2017-08-231-6/+2
| |
| * Rename tests that exercise pseudo_raw_input()Jared Crapo2017-08-231-12/+12
| |
| * add tests for pseudo_raw_input when isatty() is trueJared Crapo2017-08-231-0/+42
| |
| * Minor bug fixTodd Leonhardt2017-08-231-3/+2
| |
| * io.StringIO requires unicode conversion on python2.7Jared Crapo2017-08-231-1/+1
| |
| * Exit on <control>D when on a ttyJared Crapo2017-08-231-0/+2
| |
| * Figured out how to test piped input without hacking stdinJared Crapo2017-08-231-82/+41
| |
| * Discovered hacking sys.stdin doesn’t always workJared Crapo2017-08-231-17/+75
| | | | | | | | When ‘pytest -n8’ parallelizes the test execution, hacking sys.stdin to some other file descriptor yields unpredictable results
| * Prompt and line now properly echoed on tty and pipeJared Crapo2017-08-232-10/+79
| | | | | | | | if we are on a pipe, we have to echo the prompt only after we read and are not at EOF.
| * Don’t try and sane the tty if stdin isn’t a ttyJared Crapo2017-08-231-2/+3
|/
* Improved what gets printed when running commands from a script with load ↵Todd Leonhardt2017-08-232-6/+6
| | | | | | command and echo is True Previously just the command get printed. Now the prompt and the command gets printed.
* Merge pull request #217 from python-cmd2/update_changelogTodd Leonhardt2017-08-235-8/+12
|\ | | | | Updated CHANGELOG text regarding recent enhancements to transcript regexes
| * Improved wordingTodd Leonhardt2017-08-231-4/+3
| |
| * Updated CHANGELOG with some text regarding recent enhancements to transcript ↵Todd Leonhardt2017-08-225-8/+13
|/ | | | | | regexes Also bumped version from 0.7.7a to 0.7.7 in preparation for eventual next release.
* Merge pull request #216 from kotfu/fix/transcript_regexesTodd Leonhardt2017-08-2221-143/+466
|\ | | | | Transcript regexes now have predictable, tested, and documented behavior
| * Merge branch 'master' into fix/transcript_regexesTodd Leonhardt2017-08-222-12/+14
| |\ | |/ |/|
* | Merge pull request #215 from python-cmd2/edit_optionsTodd Leonhardt2017-08-212-12/+14
|\ \ | | | | | | edit command now uses options decorator
| * | Fixed a unit test which was failing on WindowsTodd Leonhardt2017-08-211-2/+5
| | | | | | | | | | | | Also fixed a 2nd unrelated unit test which sometimes failed on Windows, depending on what tools were installed or not.
| * | Converted edit command to an @options command for the better argument ↵Todd Leonhardt2017-08-212-11/+10
|/ / | | | | | | | | | | parsing related to spaces and quotes The recent change of edit to allow spaces means that it can benefit from the better argument parsing cmd2 has for commands implemented using the @options decorator.
| * Clarify warnings about whitespaceJared Crapo2017-08-221-5/+6
| |
| * Fix a bug if there is only one slashJared Crapo2017-08-222-5/+11
| |
| * modernize formattingJared Crapo2017-08-221-2/+2
| |
| * Fix bug in history commandJared Crapo2017-08-221-4/+6
| | | | | | | | It output double newlines after each history item
| * Add comments to all regex test filesJared Crapo2017-08-2215-10/+34
| |
| * Documentation edits and revisionsJared Crapo2017-08-222-33/+28
| |
| * Revise and clean up documentationJared Crapo2017-08-213-31/+58
| |
| * Updates to CmdLineApp()Jared Crapo2017-08-211-5/+5
| |