dockge-cli/dockge_cli/client/commandprovider/factory.py

8 lines
179 B
Python
Raw Normal View History

from ...models import Command
from .descriptors import mapping
commands: dict[str, Command] = {}
for descriptor in mapping:
commands.update({ descriptor.cmd: descriptor })