Coverage for harbor_cli/commands/__init__.py: 100%

7 statements  

« prev     ^ index     » next       coverage.py v6.5.0, created at 2023-02-09 12:09 +0100

1from __future__ import annotations 

2 

3from .api import api_commands 

4from .cli import cli_commands 

5 

6groups = { 

7 "API": api_commands, 

8 "CLI": cli_commands, 

9} 

10 

11# Patch help text for the different groups 

12for group_name, command_groups in groups.items(): 

13 for command_group in command_groups: 

14 # command_group.info.help = f"[{group_name}] {command_group.info.help or ''}" 

15 pass 

16 

17ALL_GROUPS = [command for group in groups.values() for command in group]