|
1 | | -## 0.9.26 (TBD, 2020) |
| 1 | +## 1.0.0-rc1 (TBD, 2020) |
2 | 2 | * Enhancements |
3 | 3 | * Changed the default help text to make `help -v` more discoverable |
4 | 4 | * Added `add_settable()` and `remove_settable()` convenience methods to update `self.settable` dictionary |
|
10 | 10 | * `prompt` |
11 | 11 | * `self.settable` changed to `self.settables` |
12 | 12 | * It is now a Dict[str, Settable] instead of Dict[str, str] |
| 13 | + * setting onchange callbacks have a new method signature and must be added to the |
| 14 | + Settable instance in order to be called |
13 | 15 | * **set** command now supports tab-completion of values |
14 | 16 | * Removed `cast()` utility function |
15 | | - |
| 17 | + |
16 | 18 | ## 0.9.25 (January 26, 2020) |
17 | 19 | * Enhancements |
18 | 20 | * Reduced what gets put in package downloadable from PyPI (removed irrelevant CI config files and such) |
|
74 | 76 | * Fix bug where cmd2 ran 'stty sane' command when stdin was not a terminal |
75 | 77 | * Enhancements |
76 | 78 | * Send all startup script paths to run_script. Previously we didn't do this if the file was empty, but that |
77 | | - showed no record of the run_script command in history. |
| 79 | + showed no record of the run_script command in history. |
78 | 80 | * Made it easier for developers to override `edit` command by having `do_history` no longer call `do_edit`. This |
79 | 81 | also removes the need to exclude `edit` command from history list. |
80 | 82 | * It is no longer necessary to set the `prog` attribute of an argparser with subcommands. cmd2 now automatically |
|
143 | 145 | * Enhancements |
144 | 146 | * Greatly simplified using argparse-based tab completion. The new interface is a complete overhaul that breaks |
145 | 147 | the previous way of specifying completion and choices functions. See header of [argparse_custom.py](https://github.com/python-cmd2/cmd2/blob/master/cmd2/argparse_custom.py) |
146 | | - for more information. |
| 148 | + for more information. |
147 | 149 | * Enabled tab completion on multiline commands |
148 | 150 | * **Renamed Commands Notice** |
149 | 151 | * The following commands were renamed in the last release and have been removed in this release |
|
153 | 155 | * We apologize for any inconvenience, but the new names are more self-descriptive |
154 | 156 | * Lots of end users were confused particularly about what exactly `load` should be loading |
155 | 157 | * Breaking Changes |
156 | | - * Restored `cmd2.Cmd.statement_parser` to be a public attribute (no underscore) |
| 158 | + * Restored `cmd2.Cmd.statement_parser` to be a public attribute (no underscore) |
157 | 159 | * Since it can be useful for creating [post-parsing hooks](https://cmd2.readthedocs.io/en/latest/features/hooks.html#postparsing-hooks) |
158 | 160 | * Completely overhauled the interface for adding tab completion to argparse arguments. See enhancements for more details. |
159 | 161 | * `ACArgumentParser` is now called `Cmd2ArgumentParser` |
|
193 | 195 | * `perror` - print a message to sys.stderr |
194 | 196 | * `pexcept` - print Exception message to sys.stderr. If debug is true, print exception traceback if one exists |
195 | 197 | * Signature of `poutput` and `perror` significantly changed |
196 | | - * Removed color parameters `color`, `err_color`, and `war_color` from `poutput` and `perror` |
| 198 | + * Removed color parameters `color`, `err_color`, and `war_color` from `poutput` and `perror` |
197 | 199 | * See the docstrings of these methods or the [cmd2 docs](https://cmd2.readthedocs.io/en/latest/features/generating_output.html) for more info on applying styles to output messages |
198 | 200 | * `end` argument is now keyword-only and cannot be specified positionally |
199 | 201 | * `traceback_war` no longer exists as an argument since it isn't needed now that `perror` and `pexcept` exist |
|
203 | 205 | * `COLORS_NEVER` --> `ANSI_NEVER` |
204 | 206 | * `COLORS_TERMINAL` --> `ANSI_TERMINAL` |
205 | 207 | * **Renamed Commands Notice** |
206 | | - * The following commands have been renamed. The old names will be supported until the next release. |
| 208 | + * The following commands have been renamed. The old names will be supported until the next release. |
207 | 209 | * `load` --> `run_script` |
208 | 210 | * `_relative_load` --> `_relative_run_script` |
209 | 211 | * `pyscript` --> `run_pyscript` |
|
222 | 224 | * Fixed issue where `_cmdloop()` suppressed exceptions by returning from within its `finally` code |
223 | 225 | * Fixed UnsupportedOperation on fileno error when a shell command was one of the commands run while generating |
224 | 226 | a transcript |
225 | | - * Fixed bug where history was displaying expanded multiline commands when -x was not specified |
| 227 | + * Fixed bug where history was displaying expanded multiline commands when -x was not specified |
226 | 228 | * Enhancements |
227 | 229 | * **Added capability to chain pipe commands and redirect their output (e.g. !ls -l | grep user | wc -l > out.txt)** |
228 | 230 | * `pyscript` limits a command's stdout capture to the same period that redirection does. |
|
243 | 245 | * Text scripts now run immediately instead of adding their commands to `cmdqueue`. This allows easy capture of |
244 | 246 | the entire script's output. |
245 | 247 | * Added member to `CommandResult` called `stop` which is the return value of `onecmd_plus_hooks` after it runs |
246 | | - the given command line. |
| 248 | + the given command line. |
247 | 249 | * Breaking changes |
248 | 250 | * Replaced `unquote_redirection_tokens()` with `unquote_specific_tokens()`. This was to support the fix |
249 | 251 | that allows terminators in alias and macro values. |
|
0 commit comments