mdrs-client-python/mdrsclient/commands/base.py
2023-05-01 20:00:32 +09:00

12 lines
315 B
Python

from abc import ABC, abstractmethod
from argparse import _SubParsersAction
from mdrsclient.exceptions import UnexpectedException
class BaseCommand(ABC):
@staticmethod
@abstractmethod
def register(top_level_subparsers: _SubParsersAction) -> None:
raise UnexpectedException("Not implemented.")