@@ -45,15 +45,14 @@ _WrappedFunc = TypeVar("_WrappedFunc", bound=Callable[..., Any])
4545
4646MODULE_NAME = pathlib .Path (__file__ ).stem
4747
48- # Per command settings
49- PER_CMD_SETTINGS = ["json" , "jsonl" , "color" , "colour" , "nocolor" , "nocolour" , "debug" , "timer" , "page" ]
48+ PER_CMD_SETTINGS = ["json" , "jsonl" , "color" , "colour" , "nocolor" , "nocolour" , "debug" , "timer" , "scroll" ]
5049
5150DEFAULT_CONFIG = {
5251 "format_json" : True ,
5352 "color_output" : True ,
5453 "timer" : False ,
5554 "theme" : "TERMINAL" ,
56- "page_output " : False ,
55+ "scroll_output " : False ,
5756 "debug_sdk_call" : False ,
5857 "debug_sz_engine" : False ,
5958 "history_file" : True ,
@@ -71,7 +70,7 @@ SETTINGS_TO_CONFIG_MAP = {
7170 "debug" : ["debug_sdk_call" , True ],
7271 "debug_sdk" : ["debug_sdk_call" , True ],
7372 "timer" : ["timer" , True ],
74- "page " : ["page_output " , True ],
73+ "scroll " : ["scroll_output " , True ],
7574}
7675
7776# Don't overwrite last command if we still need to use it
@@ -99,7 +98,7 @@ CONFIG_SETTINGS: Dict[str, Dict[str, Any]] = {
9998 "values" : [c .lower () for c in Colors .AVAILABLE_THEMES ],
10099 "description" : "Set color scheme to use" ,
101100 },
102- "page_output " : {
101+ "scroll_output " : {
103102 "values" : ["off" , "on" ],
104103 "description" : "Use a pager for content larger than the terminal" ,
105104 },
@@ -126,7 +125,7 @@ CONFIG_SETTINGS: Dict[str, Dict[str, Any]] = {
126125
127126def do_methods_decorator (do_method : _WrappedFunc ) -> _WrappedFunc :
128127 @functools .wraps (do_method )
129- def wrapper (self , * args , ** kwargs ) -> Any :
128+ def wrapper (self , * args : Any , ** kwargs : Any ) -> Any :
130129 # Remove do_ from wrapped method
131130 sdk_method_name = do_method .__name__ [3 :]
132131
@@ -582,7 +581,7 @@ class SzCmdShell(cmd.Cmd):
582581 formatted_response : str = print_response (
583582 response ,
584583 self .per_cmd_config ["format_json" ], # type: ignore[arg-type]
585- self .per_cmd_config ["page_output " ], # type: ignore[arg-type]
584+ self .per_cmd_config ["scroll_output " ], # type: ignore[arg-type]
586585 self .per_cmd_config ["color_output" ], # type: ignore[arg-type]
587586 color = color ,
588587 )
@@ -781,7 +780,7 @@ class SzCmdShell(cmd.Cmd):
781780 - nocolor / nocolour
782781 - debug
783782 - timer
784- - page
783+ - scroll
785784
786785 { colorize_str ('- Examples:' , 'dim' )}
787786 - get_entity_by_entity_id 1001 jsonl
@@ -845,21 +844,21 @@ class SzCmdShell(cmd.Cmd):
845844 Notes:
846845 - Retrieve the active configuration identifier with get_active_config_id
847846
848- - Retrieve a list of configurations and identifiers with get_configs """
847+ - Retrieve a list of configurations and identifiers with get_config_registry """
849848
850849 sz_config = self .sz_configmgr .create_config_from_config_id (kwargs ["parsed_args" ].config_id )
851850 response = sz_config .export ()
852851 self .last_response = self .output_response (response )
853852
854853 @do_methods_decorator
855- def do_get_configs (self ) -> None :
854+ def do_get_config_registry (self ) -> None :
856855 """
857- Get a list of current configurations
856+ Get details of current registered configurations
858857
859858 Syntax:
860- get_configs """
859+ get_config_registry """
861860
862- response = self .sz_configmgr .get_configs ()
861+ response = self .sz_configmgr .get_config_registry ()
863862 self .last_response = self .output_response (response )
864863
865864 @do_methods_decorator
@@ -889,7 +888,7 @@ class SzCmdShell(cmd.Cmd):
889888 new_default_config_id = Configuration identifier
890889
891890 Notes:
892- - Retrieve a list of configurations and identifiers with get_configs """
891+ - Retrieve a list of configurations and identifiers with get_config_registry """
893892
894893 self .sz_configmgr .replace_default_config_id (
895894 kwargs ["parsed_args" ].current_default_config_id ,
@@ -2297,7 +2296,7 @@ class SzCmdShell(cmd.Cmd):
22972296 return kwargs ["cmd_settings" ]
22982297
22992298 @cmd_settings_decorator
2300- def complete_get_configs (self , text : str , line : str , begidx : int , endidx : int , ** kwargs ) -> List [str ]:
2299+ def complete_get_config_registry (self , text : str , line : str , begidx : int , endidx : int , ** kwargs ) -> List [str ]:
23012300 return kwargs ["cmd_settings" ]
23022301
23032302 @cmd_settings_decorator
0 commit comments