@@ -1225,7 +1225,7 @@ def print_to(
1225
1225
method and still call `super()` without encountering unexpected keyword argument errors.
1226
1226
These arguments are not passed to Rich's Console.print().
1227
1227
"""
1228
- prepared_objects = ru .prepare_objects_for_rich_print (* objects )
1228
+ prepared_objects = ru .prepare_objects_for_rich_rendering (* objects )
1229
1229
1230
1230
try :
1231
1231
Cmd2GeneralConsole (file ).print (
@@ -1469,7 +1469,7 @@ def ppaged(
1469
1469
1470
1470
# Check if we are outputting to a pager.
1471
1471
if functional_terminal and can_block :
1472
- prepared_objects = ru .prepare_objects_for_rich_print (* objects )
1472
+ prepared_objects = ru .prepare_objects_for_rich_rendering (* objects )
1473
1473
1474
1474
# Chopping overrides soft_wrap
1475
1475
if chop :
@@ -2508,7 +2508,11 @@ def _get_settable_completion_items(self) -> list[CompletionItem]:
2508
2508
results : list [CompletionItem ] = []
2509
2509
2510
2510
for cur_key in self .settables :
2511
- descriptive_data = [self .settables [cur_key ].get_value (), self .settables [cur_key ].description ]
2511
+ settable = self .settables [cur_key ]
2512
+ descriptive_data = [
2513
+ str (settable .get_value ()),
2514
+ settable .description ,
2515
+ ]
2512
2516
results .append (CompletionItem (cur_key , descriptive_data ))
2513
2517
2514
2518
return results
@@ -4157,8 +4161,8 @@ def _print_documented_command_topics(self, header: str, cmds: list[str], verbose
4157
4161
Column ("Name" , no_wrap = True ),
4158
4162
Column ("Description" , overflow = "fold" ),
4159
4163
box = rich .box .SIMPLE_HEAD ,
4160
- border_style = Cmd2Style .TABLE_BORDER ,
4161
4164
show_edge = False ,
4165
+ border_style = Cmd2Style .TABLE_BORDER ,
4162
4166
)
4163
4167
4164
4168
# Try to get the documentation string for each command
@@ -4478,16 +4482,20 @@ def do_set(self, args: argparse.Namespace) -> None:
4478
4482
Column ("Value" , overflow = "fold" ),
4479
4483
Column ("Description" , overflow = "fold" ),
4480
4484
box = rich .box .SIMPLE_HEAD ,
4481
- border_style = Cmd2Style .TABLE_BORDER ,
4482
4485
show_edge = False ,
4486
+ border_style = Cmd2Style .TABLE_BORDER ,
4483
4487
)
4484
4488
4485
4489
# Build the table and populate self.last_result
4486
4490
self .last_result = {} # dict[settable_name, settable_value]
4487
4491
4488
4492
for param in sorted (to_show , key = self .default_sort_key ):
4489
4493
settable = self .settables [param ]
4490
- settable_table .add_row (param , str (settable .get_value ()), settable .description )
4494
+ settable_table .add_row (
4495
+ param ,
4496
+ str (settable .get_value ()),
4497
+ settable .description ,
4498
+ )
4491
4499
self .last_result [param ] = settable .get_value ()
4492
4500
4493
4501
self .poutput ()
0 commit comments