first commit
This commit is contained in:
11
mdrsclient/commands/base.py
Normal file
11
mdrsclient/commands/base.py
Normal file
@ -0,0 +1,11 @@
|
||||
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.")
|
Reference in New Issue
Block a user