# Path: marathoner/commands/base.py
# class BaseCommand(object):
#     syntax = ''
#     help = ''
# 
#     def __init__(self, project, executor):
#         self.project = project
#         self.executor = executor
#         self.contest = project.contest
# 
#     def is_match(self, command):
#         '''Given is the text that user typed into command line, return True
#         if this command should execute.
#         '''
#         raise NotImplementedError()
# 
#     def handle(self, command):
#         '''Given is the text that user typed into command line, execute the
#         command.
#         '''


import re
import sys
from six import print_
from marathoner.commands.base import BaseCommand




class Command(BaseCommand):
    syntax = 'quit'
    help = 'quit marathoner'


# Path: marathoner/commands/base.py
# class BaseCommand(object):
#     syntax = ''
#     help = ''
# 
#     def __init__(self, project, executor):
#         self.project = project
#         self.executor = executor
#         self.contest = project.contest
# 
#     def is_match(self, command):
#         '''Given is the text that user typed into command line, return True
#         if this command should execute.
#         '''
#         raise NotImplementedError()
# 
#     def handle(self, command):
#         '''Given is the text that user typed into command line, execute the
#         command.
#         '''


# Path: marathoner/commands/quit.py
import re
import sys
from six import print_
from marathoner.commands.base import BaseCommand





class Command(BaseCommand):
    syntax = 'quit'
    help = 'quit marathoner'


    cmd_re = re.compile(r'^\s*(quit|exit)\s*$', re.IGNORECASE)