@@ -520,13 +520,13 @@ def do_marketplace(self, params):
520520 self .help_marketplace ()
521521 return
522522 arg , params = self ._parse_params (params )
523- if arg in ['list ' , 'info' , 'install' , 'remove' ]:
523+ if arg in ['search ' , 'info' , 'install' , 'remove' ]:
524524 return getattr (self , '_do_marketplace_' + arg )(params )
525525 else :
526526 self .help_marketplace ()
527527
528- def _do_marketplace_list (self , params ):
529- '''Lists all available modules in the marketplace '''
528+ def _do_marketplace_search (self , params ):
529+ '''Searches marketplace modules'''
530530 modules = [m for m in self ._module_index ]
531531 if params :
532532 self .output (f"Searching module index for '{ params } '..." )
@@ -546,7 +546,7 @@ def _do_marketplace_list(self, params):
546546 print (f"{ self .spacer } K = Requires keys. See info for details.{ os .linesep } " )
547547 else :
548548 self .error ('No modules found.' )
549- self ._help_marketplace_list ()
549+ self ._help_marketplace_search ()
550550
551551 def _do_marketplace_info (self , params ):
552552 '''Shows detailed information about available modules'''
@@ -602,7 +602,7 @@ def do_workspaces(self, params):
602602 self .help_workspaces ()
603603
604604 def _do_workspaces_list (self , params ):
605- '''Lists all existing workspaces'''
605+ '''Lists existing workspaces'''
606606 self .table ([[x ] for x in self ._get_workspaces ()], header = ['Workspaces' ])
607607
608608 def _do_workspaces_create (self , params ):
@@ -641,7 +641,7 @@ def do_snapshots(self, params):
641641 self .help_snapshots ()
642642
643643 def _do_snapshots_list (self , params ):
644- '''Lists all existing database snapshots'''
644+ '''Lists existing database snapshots'''
645645 snapshots = self ._get_snapshots ()
646646 if snapshots :
647647 self .table ([[x ] for x in snapshots ], header = ['Snapshots' ])
@@ -693,7 +693,7 @@ def _do_module_load(self, params):
693693 self ._help_module_load ()
694694 return
695695 # finds any modules that contain params
696- modules = [ params ] if params in self ._loaded_modules else [ x for x in self . _loaded_modules if params in x ]
696+ modules = self ._match_modules ( params )
697697 # notify the user if none or multiple modules are found
698698 if len (modules ) != 1 :
699699 if not modules :
@@ -746,11 +746,11 @@ def help_index(self):
746746
747747 def help_marketplace (self ):
748748 print (getattr (self , 'do_marketplace' ).__doc__ )
749- print (f"{ os .linesep } Usage: marketplace <list |info|install|remove> [...]{ os .linesep } " )
749+ print (f"{ os .linesep } Usage: marketplace <search |info|install|remove> [...]{ os .linesep } " )
750750
751- def _help_marketplace_list (self ):
752- print (getattr (self , '_do_marketplace_list ' ).__doc__ )
753- print (f"{ os .linesep } Usage: marketplace list [<regex>]{ os .linesep } " )
751+ def _help_marketplace_search (self ):
752+ print (getattr (self , '_do_marketplace_search ' ).__doc__ )
753+ print (f"{ os .linesep } Usage: marketplace search [<regex>]{ os .linesep } " )
754754
755755 def _help_marketplace_info (self ):
756756 print (getattr (self , '_do_marketplace_info' ).__doc__ )
@@ -803,12 +803,12 @@ def complete_index(self, text, line, *ignored):
803803
804804 def complete_marketplace (self , text , line , * ignored ):
805805 arg , params = self ._parse_params (line .split (' ' , 1 )[1 ])
806- subs = ['list ' , 'info' , 'install' , 'remove' ]
806+ subs = ['search ' , 'info' , 'install' , 'remove' ]
807807 if arg in subs :
808808 return getattr (self , '_complete_marketplace_' + arg )(text , params )
809809 return [sub for sub in subs if sub .startswith (text )]
810810
811- def _complete_marketplace_list (self , text , * ignored ):
811+ def _complete_marketplace_search (self , text , * ignored ):
812812 return []
813813
814814 def _complete_marketplace_info (self , text , * ignored ):
0 commit comments