Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Made last_result public and restored the initialization of it in __init__ ↵ | Todd Leonhardt | 2019-06-23 | 1 | -0/+4 | |
| | | | | and associated comment | |||||
* | Restored a few attributes to be public | Todd Leonhardt | 2019-06-23 | 1 | -51/+51 | |
| | ||||||
* | Started refactoring transcript testing to have a better display of ↵ | Todd Leonhardt | 2019-06-16 | 1 | -1/+17 | |
| | | | | information to the user | |||||
* | Fixed a few comments where "redirecting" accidentally got changed to ↵ | Todd Leonhardt | 2019-06-15 | 1 | -2/+2 | |
| | | | | "_redirecting" | |||||
* | Updated CHANGELOG and made some more methods protected | Todd Leonhardt | 2019-06-15 | 1 | -18/+18 | |
| | ||||||
* | Made more methods protected | Todd Leonhardt | 2019-06-15 | 1 | -23/+23 | |
| | ||||||
* | Fix flake8 errors for continuation line under-indented after refactoring | Todd Leonhardt | 2019-06-15 | 1 | -6/+6 | |
| | ||||||
* | Began work to minimize public API | Todd Leonhardt | 2019-06-15 | 1 | -175/+135 | |
| | ||||||
* | Fix unit test failures I introduced in last commit | Todd Leonhardt | 2019-06-15 | 1 | -39/+41 | |
| | ||||||
* | Print warnings at end of load or pyscript instead of beginning | Todd Leonhardt | 2019-06-15 | 1 | -12/+10 | |
| | | | | This is in case the user runs a long script - I don't want the warning to quickly scroll off the screen where they then never see it. | |||||
* | Fixing unit tests | Kevin Van Brunt | 2019-06-15 | 1 | -0/+5 | |
| | ||||||
* | Fixing unit tests | Kevin Van Brunt | 2019-06-15 | 1 | -1/+1 | |
| | ||||||
* | Renamed pyscript to run_pyscript | Kevin Van Brunt | 2019-06-14 | 1 | -7/+15 | |
| | ||||||
* | Renamed load to run_script and _relative_load to _relative_run_script | Kevin Van Brunt | 2019-06-14 | 1 | -33/+48 | |
| | ||||||
* | Merge branch 'master' into deprecate_34 | Todd Leonhardt | 2019-06-14 | 1 | -6/+12 | |
|\ | ||||||
| * | Merge branch 'master' into history_fixes | Kevin Van Brunt | 2019-06-14 | 1 | -157/+144 | |
| |\ | ||||||
| * | | Adding individual lines of commands to readline history to match how it was ↵ | Kevin Van Brunt | 2019-06-14 | 1 | -5/+7 | |
| | | | | | | | | | | | | entered | |||||
| * | | Fixed issue where input line was being saved before all of a multiline ↵ | Kevin Van Brunt | 2019-06-14 | 1 | -2/+6 | |
| | | | | | | | | | | | | command had been fully read | |||||
| * | | Fix history display issues | Todd Leonhardt | 2019-06-13 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issues were two fold: - HistoryItem statement.raw was getting mangled for multiline commands due to macro-related changes in _input_line_to_statement() - HistoryItem pretty printing wasn't using rstrip() anymore in verbose mode I added a couple unit tests in the process of getting here. But we should add some explicit unit tests of _input_line_to_statement() for cases like: - basic single-line command - macro single-line command - multiline command | |||||
* | | | Deprecate support for Python 3.4 and begin testing with Python 3.8 beta | Todd Leonhardt | 2019-06-14 | 1 | -6/+1 | |
| |/ |/| | ||||||
* | | Reverted making constant values for colors. This will be done on a future ↵ | Kevin Van Brunt | 2019-06-13 | 1 | -8/+9 | |
| | | | | | | | | ticket. | |||||
* | | Transcript generation no longer terminates _cmdloop() when a command returns ↵ | Kevin Van Brunt | 2019-06-12 | 1 | -7/+8 | |
| | | | | | | | | True for stop | |||||
* | | Fixed UnsupportedOperation on fileno error when a shell command was one of ↵ | Kevin Van Brunt | 2019-06-12 | 1 | -11/+5 | |
| | | | | | | | | the commands run while generating a transcript | |||||
* | | Made constants for color values | Kevin Van Brunt | 2019-06-12 | 1 | -8/+7 | |
| | | ||||||
* | | Revert "Move argparse parsing of CLI args back to cmdloop() from __init__()" | Kevin Van Brunt | 2019-06-12 | 1 | -17/+16 | |
| | | | | | | | | This reverts commit f42cdb2a52a096e5c2627db5eeeae7c2e059fb4a. | |||||
* | | Move argparse parsing of CLI args back to cmdloop() from __init__() | Todd Leonhardt | 2019-06-11 | 1 | -16/+17 | |
| | | | | | | | | This is so unit tests pass | |||||
* | | Removed support for cmd.cmdqueue | Kevin Van Brunt | 2019-06-11 | 1 | -43/+48 | |
| | | | | | | | | allow_cli_args is now an argument to __init__ instead of a cmd2 class member | |||||
* | | Removed self._should_quit from cmd2 and add logic to PyscriptBridge to ↵ | Kevin Van Brunt | 2019-06-07 | 1 | -6/+3 | |
| | | | | | | | | | | | | return whether a command returned True for stop. Added stop to CommandResult so pyscripts can now know the return value of a command's do_* function. | |||||
* | | Moved a new helper function from cmd2.py to utils.py where it probably belonged | Todd Leonhardt | 2019-06-07 | 1 | -15/+1 | |
| | | ||||||
* | | Extracted duplicated code to utility function | Todd Leonhardt | 2019-06-06 | 1 | -4/+4 | |
| | | ||||||
* | | Refactored how and when transcript file glob patterns are expanded in order ↵ | Todd Leonhardt | 2019-06-06 | 1 | -5/+25 | |
| | | | | | | | | to present a better error message to user | |||||
* | | runcmds_plus_hooks now handles HistoryItems | Kevin Van Brunt | 2019-06-06 | 1 | -2/+5 | |
| | | ||||||
* | | Merge branch 'master' into script_refactor | Kevin Van Brunt | 2019-06-06 | 1 | -58/+108 | |
|\ \ | |/ | ||||||
| * | Always remove persistent history file when history is cleared since it no ↵ | Kevin Van Brunt | 2019-06-06 | 1 | -5/+6 | |
| | | | | | | | | | | | | longer is dependent on readline. Made certain paths absolute since the CWD could change between usages. | |||||
| * | Changed wrapping point of some help text | Kevin Van Brunt | 2019-06-06 | 1 | -11/+11 | |
| | | ||||||
| * | Changed wrapping point of history's help text to match all other help text ↵ | Kevin Van Brunt | 2019-06-05 | 1 | -1/+2 | |
| | | | | | | | | in cmd2 | |||||
| * | Add the -a/--all flag to the history command for showing all commands ↵ | Todd Leonhardt | 2019-05-27 | 1 | -6/+9 | |
| | | | | | | | | | | | | | | | | | | | | including those persisted from previous sessions Also: - History class has been modified to keep track of the session start index - History class span(), str_search(), and regex_search() methods now take an optional 2nd boolean parameter `include_persisted` which determines whether or not commands persisted from previous sessions should be included by default - If a start index is manually specified, then it automatically includes the full search - Updates unit tests | |||||
| * | Fix a bug discovered during manual testing | Todd Leonhardt | 2019-05-27 | 1 | -1/+2 | |
| | | | | | | | | I found that at least with certain versions of Python and OSes, if I had a previous text-based readline history, an unhandled UnpicklingError exception could occur. So now we catch that and several other possible errors which can theoretically occur during unpickling and just move on with an empty history. The old file will get overwritten with one in the new format when the application exits. | |||||
| * | Improve unit test coverage for history | kotfu | 2019-05-25 | 1 | -2/+2 | |
| | | ||||||
| * | Switch back to os.path from pathlib | kotfu | 2019-05-25 | 1 | -7/+6 | |
| | | | | | | | | python 3.4 pathlib doesn’t have .expanduser() | |||||
| * | switch _initialize_history() from os.path to pathlib | kotfu | 2019-05-25 | 1 | -6/+7 | |
| | | ||||||
| * | Manually check whether persistent_history_file is a directory | kotfu | 2019-05-25 | 1 | -4/+7 | |
| | | ||||||
| * | Resolve PR feedback | kotfu | 2019-05-25 | 1 | -9/+9 | |
| | | ||||||
| * | Populate readline history from unpickled history | kotfu | 2019-05-24 | 1 | -22/+23 | |
| | | ||||||
| * | Refactor HistoryItem to not subclass str | kotfu | 2019-05-24 | 1 | -6/+8 | |
| | | ||||||
| * | Cleanup some history tests | kotfu | 2019-05-24 | 1 | -18/+38 | |
| | | ||||||
| * | Initializing history now detects plaintext or pickle format | kotfu | 2019-05-24 | 1 | -32/+50 | |
| | | ||||||
* | | Removed _STOP_AND_EXIT cmd2 class member since it was meant to be a boolean ↵ | Kevin Van Brunt | 2019-06-04 | 1 | -6/+4 | |
| | | | | | | | | constant and was only used internally | |||||
* | | Removing duplicate functionality by calling runcmds_plus_hooks() to run cmdqueue | Kevin Van Brunt | 2019-05-24 | 1 | -10/+11 | |
| | | ||||||
* | | Running commands from history stops if a command returns True for its stop ↵ | Kevin Van Brunt | 2019-05-24 | 1 | -5/+1 | |
| | | | | | | | | value. The command loop will also terminate. |