mdrs-client-python/mdrsclient/commands/base.py

12 lines
315 B
Python
Raw Normal View History

2023-05-01 20:00:32 +09:00
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.")