@@ -2623,6 +2623,10 @@ def _cmdloop(self) -> None:
2623
2623
if saved_readline_settings is not None :
2624
2624
self ._restore_readline (saved_readline_settings )
2625
2625
2626
+ #############################################################
2627
+ # Parsers and functions for alias command and subcommands
2628
+ #############################################################
2629
+
2626
2630
# Top-level parser for alias
2627
2631
alias_description = ("Manage aliases\n "
2628
2632
"\n "
@@ -2641,10 +2645,6 @@ def do_alias(self, args: argparse.Namespace) -> None:
2641
2645
handler = args .get_handler ()
2642
2646
handler (args )
2643
2647
2644
- ############################################
2645
- # Add subcommands to alias
2646
- ############################################
2647
-
2648
2648
# alias -> create
2649
2649
alias_create_description = "Create or overwrite an alias"
2650
2650
@@ -2750,6 +2750,10 @@ def _alias_list(self, args: argparse.Namespace) -> None:
2750
2750
for cur_alias in sorted (self .aliases , key = self .default_sort_key ):
2751
2751
self .poutput ("alias create {} {}" .format (cur_alias , self .aliases [cur_alias ]))
2752
2752
2753
+ #############################################################
2754
+ # Parsers and functions for macro command and subcommands
2755
+ #############################################################
2756
+
2753
2757
# Top-level parser for macro
2754
2758
macro_description = ("Manage macros\n "
2755
2759
"\n "
@@ -2768,10 +2772,6 @@ def do_macro(self, args: argparse.Namespace) -> None:
2768
2772
handler = args .get_handler ()
2769
2773
handler (args )
2770
2774
2771
- ############################################
2772
- # Add subcommands to macro
2773
- ############################################
2774
-
2775
2775
# macro -> create
2776
2776
macro_create_help = "create or overwrite a macro"
2777
2777
macro_create_description = "Create or overwrite a macro"
0 commit comments