12 lines
315 B
Python
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.")
|