summaryrefslogtreecommitdiff
path: root/tests/test_table_creator.py
Commit message (Collapse)AuthorAgeFilesLines
* Added clearer exception handling to BorderedTable and SimpleTableKevin Van Brunt2021-11-241-1/+23
|
* ArgparseCompleter now sorts CompletionItems created with numerical values as ↵Kevin Van Brunt2021-11-181-33/+37
| | | | | | | | | numbers. Completion hint tables now right-align the left column if the hints have a numerical type. Fixed issue introduced in 2.3.0 with AlternatingTable, BorderedTable, and SimpleTable that caused header alignment settings to be overridden by data alignment settings.
* Added ability to set border background color on BorderTables and ↵Kevin Van Brunt2021-11-101-27/+28
| | | | AlternatingTables
* Updated table example.Kevin Van Brunt2021-10-261-15/+15
| | | | | | Renamed Column settings: override_header_style -> style_header_text override_data_style -> style_data_text
* Added ability to colorize all aspects of SimpleTablesKevin Van Brunt2021-10-251-15/+38
|
* Added ability to colorize all aspects of BorderedTables and AlternatingTables.Kevin Van Brunt2021-10-191-28/+56
| | | | Refactored utils.align_text() to print less fill_char style characters.
* Added support for 8-bit/256-colors with the cmd2.EightBitFg and ↵Kevin Van Brunt2021-10-181-16/+19
| | | | | | | | | | | | | | cmd2.EightBitBg classes. Added support for 24-bit/RGB colors with the cmd2.RgbFg and cmd2.RgbBg classes. Removed dependency on colorama. Deprecated cmd2.fg. Use cmd2.Fg instead. Deprecated cmd2.bg. Use cmd2.Bg instead. Changed type of ansi.allow_style from a string to an ansi.AllowStyle Enum class. Fixed bug where using choices on a Settable didn't verify that a valid choice had been entered.
* Added settings to Column class which prevent a table from overriding ↵Kevin Van Brunt2021-10-131-6/+33
| | | | | | | | | | existing styles in header and/or data text. These were added to support nesting an AlternatingTable within an AlternatingTable, but other custom table classes can also use these settings. AlternatingTable no longer applies background color to outer borders. This was done to improve appearance since the background color extended beyond the borders of the table.
* set command output now uses SimpleTable.Kevin Van Brunt2021-08-191-2/+5
| | | | | | | Tabled tab completion now includes divider row. Tab completion results for aliases, macros, and Settables wrap long fields. SimpleTable now accepts blank for the divider character. It is identical to passing None. Removed --verbose flag from set command so the descriptions always show.
* Made the amount of space between columns in a SimpleTable configurablecolumn_spacingKevin Van Brunt2021-04-211-0/+17
|
* And that's the last of it. Passes mypy.Eric Lin2021-04-061-5/+5
|
* Moved empty line check in table creatorKevin Van Brunt2021-03-021-0/+8
|
* Fixed issue where TableCreator was tossing blank last linestable_newlineKevin Van Brunt2021-03-011-11/+45
|
* Add in isort changesTodd Leonhardt2021-01-311-1/+3
|
* Add black for automatic code formatTodd Leonhardt2021-01-311-131/+171
|
* Added more validation to TableCreatorKevin Van Brunt2021-01-291-0/+4
|
* Fixed width calculation when table column headers had tabsKevin Van Brunt2021-01-281-12/+30
|
* Changed isort to force wrapping of imports to reduce merge conflicts from ↵Eric Lin2021-01-221-1/+3
| | | | minor import changes.
* Changed how SimpleTable creates divider when divider_char is wide. It no ↵Kevin Van Brunt2020-06-011-28/+57
| | | | longer stretches the width of the table.
* Added unit tests for base_width()Kevin Van Brunt2020-05-281-3/+54
|
* Updated argparse_completer to use TableCreator for the hint tableKevin Van Brunt2020-05-281-42/+52
|
* Added info on semantic versioning and branching strategy to CONTRIBUTING.mdTodd Leonhardt2020-04-241-2/+9
| | | | | | | Also: - Added isort to Pipenv dev - Added setup.cfg to make it easy to run flake8, doc8, and isort directly from the command line without using invoke - Ran isort to sort includes
* Added unit tests for paddingKevin Van Brunt2020-04-221-0/+31
|
* Initial commit of table creation APIKevin Van Brunt2020-04-091-0/+380