From ede9f3e77a59281a442227ed9b4b92e62e85d2b9 Mon Sep 17 00:00:00 2001 From: Todd Leonhardt Date: Thu, 6 Feb 2020 21:28:06 -0500 Subject: Added convenience `ansi.fg` and `ansi.bg` enums of foreground and background colors which style() can now optionally use This is to make it easier to autocomplete color names in an IDE --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index 77ba6b00..07225efc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ * Enhancements * Changed the default help text to make `help -v` more discoverable * Added `add_settable()` and `remove_settable()` convenience methods to update `self.settable` dictionary + * Added convenience `ansi.fg` and `ansi.bg` enums of foreground and background colors + * `ansi.style()` `fg` argument can now either be of type `str` or `ansi.fg` + * `ansi.style()` `bg` argument can now either be of type `str` or `ansi.bg` + * This supports IDE auto-completion of color names * Breaking changes * Renamed `locals_in_py` attribute of `cmd2.Cmd` to `self_in_py` * The following public attributes of `cmd2.Cmd` are no longer settable at runtime by default: -- cgit v1.2.1