|
| 1 | +## 2.5.0 (TBD) |
| 2 | +* Enhancements |
| 3 | + * add `allow_clipboard` initialization parameter and attribute to disable ability to |
| 4 | + add output to the operating system clipboard |
| 5 | + |
1 | 6 | ## 2.4.3 (January 27, 2023)
|
2 | 7 | * Bug Fixes
|
3 | 8 | * Fixed ValueError caused when passing `Cmd.columnize()` strings wider than `display_width`.
|
|
84 | 89 | * Added `ap_completer_type` keyword arg to `Cmd2ArgumentParser.__init__()` which saves a call
|
85 | 90 | to `set_ap_completer_type()`. This keyword will also work with `add_parser()` when creating subcommands
|
86 | 91 | if the base command's parser is a `Cmd2ArgumentParser`.
|
87 |
| - * New function `register_argparse_argument_parameter()` allows developers to specify custom |
| 92 | + * New function `register_argparse_argument_parameter()` allows developers to specify custom |
88 | 93 | parameters to be passed to the argparse parser's `add_argument()` method. These parameters will
|
89 | 94 | become accessible in the resulting argparse Action object when modifying `ArgparseCompleter` behavior.
|
90 | 95 | * Using `SimpleTable` in the output for the following commands to improve appearance.
|
|
257 | 262 |
|
258 | 263 | ## 1.3.7 (August 27, 2020)
|
259 | 264 | * Bug Fixes
|
260 |
| - * Fixes an issue introduced in 1.3.0 with processing command strings containing terminator/separator |
| 265 | + * Fixes an issue introduced in 1.3.0 with processing command strings containing terminator/separator |
261 | 266 | character(s) that are manually passed to a command that uses argparse.
|
262 | 267 |
|
263 | 268 | ## 1.3.6 (August 27, 2020)
|
264 | 269 | * Breaking changes
|
265 |
| - * The functions cmd2 adds to Namespaces (`get_statement()` and `get_handler()`) are now |
| 270 | + * The functions cmd2 adds to Namespaces (`get_statement()` and `get_handler()`) are now |
266 | 271 | `Cmd2AttributeWrapper` objects named `cmd2_statement` and `cmd2_handler`. This makes it
|
267 | 272 | easy to filter out which attributes in an `argparse.Namespace` were added by `cmd2`.
|
268 | 273 | * Deprecations
|
|
288 | 293 | * Breaking changes
|
289 | 294 | * CommandSet command functions (do_, complete_, help_) will no longer have the cmd2 app
|
290 | 295 | passed in as the first parameter after `self` since this is already a class member.
|
291 |
| - * Renamed `install_command_set()` and `uninstall_command_set()` to `register_command_set()` and |
| 296 | + * Renamed `install_command_set()` and `uninstall_command_set()` to `register_command_set()` and |
292 | 297 | `unregister_command_set()` for better name consistency.
|
293 | 298 | * Bug Fixes
|
294 | 299 | * Fixed help formatting bug in `Cmd2ArgumentParser` when `metavar` is a tuple
|
|
298 | 303 | * Removed explicit type hints that fail due to a bug in 3.5.2 favoring comment-based hints instead
|
299 | 304 | * When passing a ns_provider to an argparse command, will now attempt to resolve the correct
|
300 | 305 | CommandSet instance for self. If not, it'll fall back and pass in the cmd2 app
|
301 |
| -* Other |
302 |
| - * Added missing doc-string for new cmd2.Cmd __init__ parameters |
| 306 | +* Other |
| 307 | + * Added missing doc-string for new cmd2.Cmd __init__ parameters |
303 | 308 | introduced by CommandSet enhancement
|
304 | 309 |
|
305 | 310 | ## 1.3.2 (August 10, 2020)
|
|
314 | 319 | ## 1.3.1 (August 6, 2020)
|
315 | 320 | * Bug Fixes
|
316 | 321 | * Fixed issue determining whether an argparse completer function required a reference to a containing
|
317 |
| - CommandSet. Also resolves issues determining the correct CommandSet instance when calling the argparse |
318 |
| - argument completer function. Manifested as a TypeError when using `cmd2.Cmd.path_complete` as a completer |
| 322 | + CommandSet. Also resolves issues determining the correct CommandSet instance when calling the argparse |
| 323 | + argument completer function. Manifested as a TypeError when using `cmd2.Cmd.path_complete` as a completer |
319 | 324 | for an argparse-based command defined in a CommandSet
|
320 | 325 |
|
321 | 326 | ## 1.3.0 (August 4, 2020)
|
|
324 | 329 | with your cmd2 application.
|
325 | 330 | * Other
|
326 | 331 | * Marked with_argparser_and_unknown_args pending deprecation and consolidated implementation into
|
327 |
| - with_argparser |
| 332 | + with_argparser |
328 | 333 |
|
329 | 334 | ## 1.2.1 (July 14, 2020)
|
330 | 335 | * Bug Fixes
|
331 | 336 | * Relax minimum version of `importlib-metadata` to >= 1.6.0 when using Python < 3.8
|
332 | 337 |
|
333 | 338 | ## 1.2.0 (July 13, 2020)
|
334 | 339 | * Bug Fixes
|
335 |
| - * Fixed `typing` module compatibility issue with Python 3.5 prior to 3.5.4 |
| 340 | + * Fixed `typing` module compatibility issue with Python 3.5 prior to 3.5.4 |
336 | 341 | * Enhancements
|
337 | 342 | * Switched to getting version using `importlib.metadata` instead of using `pkg_resources`
|
338 | 343 | * Improves `cmd2` application launch time on systems that have a lot of Python packages on `sys.path`
|
|
341 | 346 | ## 1.1.0 (June 6, 2020)
|
342 | 347 | * Bug Fixes
|
343 | 348 | * Fixed issue where subcommand usage text could contain a subcommand alias instead of the actual name
|
344 |
| - * Fixed bug in `ArgparseCompleter` where `fill_width` could become negative if `token_width` was large |
| 349 | + * Fixed bug in `ArgparseCompleter` where `fill_width` could become negative if `token_width` was large |
345 | 350 | relative to the terminal width.
|
346 | 351 | * Enhancements
|
347 | 352 | * Made `ipy` consistent with `py` in the following ways
|
|
365 | 370 | after parsing fails, just return instead of raising an exception.
|
366 | 371 | * Added explicit handling of `SystemExit`. If a command raises this exception, the command loop will be
|
367 | 372 | gracefully stopped.
|
368 |
| - |
| 373 | + |
369 | 374 | ## 1.0.2 (April 06, 2020)
|
370 | 375 | * Bug Fixes
|
371 | 376 | * Ctrl-C now stops a running text script instead of just the current `run_script` command
|
|
388 | 393 | * Bug Fixes
|
389 | 394 | * Corrected issue where the actual new value was not always being printed in do_set. This occurred in cases where
|
390 | 395 | the typed value differed from what the setter had converted it to.
|
391 |
| - * Fixed bug where ANSI style sequences were not correctly handled in `utils.truncate_line()`. |
| 396 | + * Fixed bug where ANSI style sequences were not correctly handled in `utils.truncate_line()`. |
392 | 397 | * Fixed bug where pyscripts could edit `cmd2.Cmd.py_locals` dictionary.
|
393 |
| - * Fixed bug where cmd2 set `sys.path[0]` for a pyscript to cmd2's working directory instead of the |
| 398 | + * Fixed bug where cmd2 set `sys.path[0]` for a pyscript to cmd2's working directory instead of the |
394 | 399 | script file's directory.
|
395 | 400 | * Fixed bug where `sys.path` was not being restored after a pyscript ran.
|
396 | 401 | * Enhancements
|
|
0 commit comments