Working development server (no encryption now)

This commit is contained in:
BarsTiger
2023-07-02 11:54:49 +03:00
parent 68f1990b7e
commit 2a4e40b41b
23 changed files with 486 additions and 9 deletions

View File

@@ -0,0 +1,18 @@
import click
import typing as t
class ModuleGroup(click.Group):
def __init__(
self,
name: t.Optional[str] = None,
commands: t.Optional[
t.Union[t.Dict[str, click.Command], t.Sequence[click.Command]]
] = None,
**attrs: t.Any,
) -> None:
new_commands = dict()
for command_key in commands.keys():
new_commands[f'{name}-{command_key}'] = commands[command_key]
super().__init__(name, new_commands, **attrs)