@@ -1486,6 +1486,22 @@ def __add__(self, other):
14861486 )
14871487 return CombinedNamedObject ([self , other ])
14881488
1489+ def list (self ):
1490+ """Print the object names."""
1491+ return self ._root .list (object_path = self .path )
1492+
1493+ def list_properties (self , object_name ):
1494+ """Print the properties of the given object name.
1495+
1496+ Parameters
1497+ ----------
1498+ object_name : str
1499+ Name of the object whose properties are to be listed.
1500+ """
1501+ return self ._root .list_properties (
1502+ object_path = self .path , object_name = object_name
1503+ )
1504+
14891505
14901506class CombinedNamedObject :
14911507 """A ``CombinedNamedObject`` contains the concatenated named-objects."""
@@ -2218,6 +2234,11 @@ def _process_cls_names(info_dict, names, write_doc=False):
22182234 commands .pop ("exit" , None )
22192235 if commands and not user_creatable :
22202236 commands .pop ("create" , None )
2237+ # Temporary code for testing
2238+ if commands and parent is not None and version == "261" :
2239+ for cmd in ["list" , "list-properties" ]:
2240+ if cmd in commands :
2241+ commands .pop (cmd , None )
22212242 if commands :
22222243 cls .command_names = []
22232244 _process_cls_names (commands , cls .command_names )
0 commit comments