evalscope_v0.17.0/evalscope.0.17.0/evalscope/cli/base.py

21 lines
404 B
Python

# Copyright (c) Alibaba, Inc. and its affiliates.
from abc import ABC, abstractmethod
from argparse import ArgumentParser
class CLICommand(ABC):
"""
Base class for command line tool.
"""
@staticmethod
@abstractmethod
def define_args(parsers: ArgumentParser):
raise NotImplementedError()
@abstractmethod
def execute(self):
raise NotImplementedError()