File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -415,14 +415,14 @@ def __getattr__(self, attr):
415
415
416
416
class GroupReference :
417
417
"""
418
- Simple class to hold tools command group names comparable to how
419
- they would be invoked using the CLI.
418
+ Simple class to hold tools command group names.
420
419
421
- For example, tools vm create is stored as ("tools", "vm", "create")
420
+ These are comparable to how they would be invoked using the CLI.
421
+ For example, ``tools vm create`` is stored as ``("tools", "vm", "create")``
422
422
"""
423
423
424
424
_instance : GroupReference | None = None
425
- _commands : list [ str ]
425
+ _commands : dict [ tuple [ str , ...], CommandGroup ]
426
426
427
427
def __new__ (cls ):
428
428
"""
@@ -435,7 +435,7 @@ def __new__(cls):
435
435
return cls ._instance
436
436
437
437
@classmethod
438
- def add_command (cls , cli_name : tuple [str ], group : CommandGroup ) -> None :
438
+ def add_command (cls , cli_name : tuple [str , ... ], group : CommandGroup ) -> None :
439
439
"""
440
440
Add a tools command.
441
441
"""
You can’t perform that action at this time.
0 commit comments