@@ -2623,6 +2623,10 @@ def _cmdloop(self) -> None:
26232623 if saved_readline_settings is not None :
26242624 self ._restore_readline (saved_readline_settings )
26252625
2626+ #############################################################
2627+ # Parsers and functions for alias command and subcommands
2628+ #############################################################
2629+
26262630 # Top-level parser for alias
26272631 alias_description = ("Manage aliases\n "
26282632 "\n "
@@ -2641,10 +2645,6 @@ def do_alias(self, args: argparse.Namespace) -> None:
26412645 handler = args .get_handler ()
26422646 handler (args )
26432647
2644- ############################################
2645- # Add subcommands to alias
2646- ############################################
2647-
26482648 # alias -> create
26492649 alias_create_description = "Create or overwrite an alias"
26502650
@@ -2750,6 +2750,10 @@ def _alias_list(self, args: argparse.Namespace) -> None:
27502750 for cur_alias in sorted (self .aliases , key = self .default_sort_key ):
27512751 self .poutput ("alias create {} {}" .format (cur_alias , self .aliases [cur_alias ]))
27522752
2753+ #############################################################
2754+ # Parsers and functions for macro command and subcommands
2755+ #############################################################
2756+
27532757 # Top-level parser for macro
27542758 macro_description = ("Manage macros\n "
27552759 "\n "
@@ -2768,10 +2772,6 @@ def do_macro(self, args: argparse.Namespace) -> None:
27682772 handler = args .get_handler ()
27692773 handler (args )
27702774
2771- ############################################
2772- # Add subcommands to macro
2773- ############################################
2774-
27752775 # macro -> create
27762776 macro_create_help = "create or overwrite a macro"
27772777 macro_create_description = "Create or overwrite a macro"
0 commit comments