|
12 | 12 | * Enhancements |
13 | 13 | * Added capability to chain pipe commands and redirect their output (e.g. !ls -l | grep user | wc -l > out.txt) |
14 | 14 | * `pyscript` limits a command's stdout capture to the same period that redirection does. |
15 | | - Therefore output from a command's postparsing and finalization hooks isn't saved in the StdSim object. |
| 15 | + Therefore output from a command's postparsing and finalization hooks isn't saved in the StdSim object. |
16 | 16 | * `StdSim.buffer.write()` now flushes when the wrapped stream uses line buffering and the bytes being written |
17 | | - contain a newline or carriage return. This helps when `pyscript` is echoing the output of a shell command |
18 | | - since the output will print at the same frequency as when the command is run in a terminal. |
| 17 | + contain a newline or carriage return. This helps when `pyscript` is echoing the output of a shell command |
| 18 | + since the output will print at the same frequency as when the command is run in a terminal. |
19 | 19 | * **ACArgumentParser** no longer prints complete help text when a parsing error occurs since long help messages |
20 | | - scroll the actual error message off the screen. |
| 20 | + scroll the actual error message off the screen. |
21 | 21 | * Exceptions occurring in tab completion functions are now printed to stderr before returning control back to |
22 | 22 | readline. This makes debugging a lot easier since readline suppresses these exceptions. |
23 | 23 | * Added support for custom Namespaces in the argparse decorators. See description of `ns_provider` argument |
24 | 24 | for more information. |
25 | 25 | * Transcript testing now sets the `exit_code` returned from `cmdloop` based on Success/Failure |
26 | 26 | * The history of entered commands previously was saved using the readline persistence mechanism, |
27 | | - and only persisted if you had readline installed. Now history is persisted independent of readline; user |
28 | | - input from previous invocations of `cmd2` based apps now shows in the `history` command. |
| 27 | + and only persisted if you had readline installed. Now history is persisted independent of readline; user |
| 28 | + input from previous invocations of `cmd2` based apps now shows in the `history` command. |
29 | 29 | * Text scripts now run immediately instead of adding their commands to `cmdqueue`. This allows easy capture of |
30 | | - the entire script's output. |
| 30 | + the entire script's output. |
31 | 31 | * Added member to CommandResult called stop which is the return value of onecmd_plus_hooks after it runs the given |
32 | 32 | command line. |
33 | 33 | * Breaking changes |
34 | 34 | * Replaced `unquote_redirection_tokens()` with `unquote_specific_tokens()`. This was to support the fix |
35 | | - that allows terminators in alias and macro values. |
| 35 | + that allows terminators in alias and macro values. |
36 | 36 | * Changed `Statement.pipe_to` to a string instead of a list |
37 | 37 | * `preserve_quotes` is now a keyword-only argument in the argparse decorators |
38 | 38 | * Refactored so that `cmd2.Cmd.cmdloop()` returns the `exit_code` instead of a call to `sys.exit()` |
39 | | - It is now application developer's responsibility to treat the return value from `cmdloop()` accordingly |
| 39 | + It is now application developer's responsibility to treat the return value from `cmdloop()` accordingly |
40 | 40 | * Only valid commands are persistent in history between invocations of `cmd2` based apps. Previously |
41 | | - all user input was persistent in history. If readline is installed, the history available with the up and |
42 | | - down arrow keys (readline history) may not match that shown in the `history` command, because `history` |
43 | | - only tracks valid input, while readline history captures all input. |
| 41 | + all user input was persistent in history. If readline is installed, the history available with the up and |
| 42 | + down arrow keys (readline history) may not match that shown in the `history` command, because `history` |
| 43 | + only tracks valid input, while readline history captures all input. |
44 | 44 | * History is now persisted in a binary format, not plain text format. Previous history files are destroyed |
45 | | - on first launch of a `cmd2` based app of version 0.9.13 or higher. |
| 45 | + on first launch of a `cmd2` based app of version 0.9.13 or higher. |
46 | 46 | * HistoryItem class is no longer a subclass of `str`. If you are directly accessing the `.history` attribute |
47 | | - of a `cmd2` based app, you will need to update your code to use `.history.get(1).statement.raw` instead. |
| 47 | + of a `cmd2` based app, you will need to update your code to use `.history.get(1).statement.raw` instead. |
48 | 48 | * Removed internally used `eos` command that was used to keep track of when a text script's commands ended |
49 | 49 | * Removed cmd2 member called _STOP_AND_EXIT since it was just a boolean value that should always be True |
50 | 50 | * Removed cmd2 member called _should_quit since PyscriptBridge now handles this logic |
|
0 commit comments