|
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 | + * Added `add_settable()` and `remove_settable()` convenience methods to update `self.settable` dictionary |
4 | 5 | * Breaking changes |
5 | 6 | * Renamed `locals_in_py` attribute of `cmd2.Cmd` to `self_in_py` |
6 | 7 | * The following public attributes of `cmd2.Cmd` are no longer settable at runtime by default: |
7 | 8 | * `continuation_prompt` |
8 | 9 | * `self_in_py` |
9 | 10 | * `prompt` |
10 | | - |
| 11 | + * `self.settable` changed to `self.settables` |
| 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 |
| 15 | + * **set** command now supports tab-completion of values |
| 16 | + * Removed `cast()` utility function |
| 17 | + |
11 | 18 | ## 0.9.25 (January 26, 2020) |
12 | 19 | * Enhancements |
13 | 20 | * Reduced what gets put in package downloadable from PyPI (removed irrelevant CI config files and such) |
|
69 | 76 | * Fix bug where cmd2 ran 'stty sane' command when stdin was not a terminal |
70 | 77 | * Enhancements |
71 | 78 | * Send all startup script paths to run_script. Previously we didn't do this if the file was empty, but that |
72 | | - showed no record of the run_script command in history. |
| 79 | + showed no record of the run_script command in history. |
73 | 80 | * Made it easier for developers to override `edit` command by having `do_history` no longer call `do_edit`. This |
74 | 81 | also removes the need to exclude `edit` command from history list. |
75 | 82 | * It is no longer necessary to set the `prog` attribute of an argparser with subcommands. cmd2 now automatically |
|
138 | 145 | * Enhancements |
139 | 146 | * Greatly simplified using argparse-based tab completion. The new interface is a complete overhaul that breaks |
140 | 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) |
141 | | - for more information. |
| 148 | + for more information. |
142 | 149 | * Enabled tab completion on multiline commands |
143 | 150 | * **Renamed Commands Notice** |
144 | 151 | * The following commands were renamed in the last release and have been removed in this release |
|
148 | 155 | * We apologize for any inconvenience, but the new names are more self-descriptive |
149 | 156 | * Lots of end users were confused particularly about what exactly `load` should be loading |
150 | 157 | * Breaking Changes |
151 | | - * 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) |
152 | 159 | * Since it can be useful for creating [post-parsing hooks](https://cmd2.readthedocs.io/en/latest/features/hooks.html#postparsing-hooks) |
153 | 160 | * Completely overhauled the interface for adding tab completion to argparse arguments. See enhancements for more details. |
154 | 161 | * `ACArgumentParser` is now called `Cmd2ArgumentParser` |
|
188 | 195 | * `perror` - print a message to sys.stderr |
189 | 196 | * `pexcept` - print Exception message to sys.stderr. If debug is true, print exception traceback if one exists |
190 | 197 | * Signature of `poutput` and `perror` significantly changed |
191 | | - * 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` |
192 | 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 |
193 | 200 | * `end` argument is now keyword-only and cannot be specified positionally |
194 | 201 | * `traceback_war` no longer exists as an argument since it isn't needed now that `perror` and `pexcept` exist |
|
198 | 205 | * `COLORS_NEVER` --> `ANSI_NEVER` |
199 | 206 | * `COLORS_TERMINAL` --> `ANSI_TERMINAL` |
200 | 207 | * **Renamed Commands Notice** |
201 | | - * 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. |
202 | 209 | * `load` --> `run_script` |
203 | 210 | * `_relative_load` --> `_relative_run_script` |
204 | 211 | * `pyscript` --> `run_pyscript` |
|
217 | 224 | * Fixed issue where `_cmdloop()` suppressed exceptions by returning from within its `finally` code |
218 | 225 | * Fixed UnsupportedOperation on fileno error when a shell command was one of the commands run while generating |
219 | 226 | a transcript |
220 | | - * 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 |
221 | 228 | * Enhancements |
222 | 229 | * **Added capability to chain pipe commands and redirect their output (e.g. !ls -l | grep user | wc -l > out.txt)** |
223 | 230 | * `pyscript` limits a command's stdout capture to the same period that redirection does. |
|
238 | 245 | * Text scripts now run immediately instead of adding their commands to `cmdqueue`. This allows easy capture of |
239 | 246 | the entire script's output. |
240 | 247 | * Added member to `CommandResult` called `stop` which is the return value of `onecmd_plus_hooks` after it runs |
241 | | - the given command line. |
| 248 | + the given command line. |
242 | 249 | * Breaking changes |
243 | 250 | * Replaced `unquote_redirection_tokens()` with `unquote_specific_tokens()`. This was to support the fix |
244 | 251 | that allows terminators in alias and macro values. |
|
0 commit comments