# 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.
#         '''
# 
# class CommandSyntaxError(Exception):
#     pass
# 
# Path: marathoner/utils/user_input.py
# def get_input(msg, valid_values):
#     while True:
#         result = input(msg+' ').lower()
#         if result in valid_values:
#             return result


import re
from six import print_
from marathoner.commands.base import BaseCommand, CommandSyntaxError
from marathoner.utils.user_input import get_input




class Command(BaseCommand):
    syntax = 'tag delete <tag>'
    help = 'delete the selected tag'


# 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.
#         '''
# 
# class CommandSyntaxError(Exception):
#     pass
# 
# Path: marathoner/utils/user_input.py
# def get_input(msg, valid_values):
#     while True:
#         result = input(msg+' ').lower()
#         if result in valid_values:
#             return result


# Path: marathoner/commands/tag_delete.py
import re
from six import print_
from marathoner.commands.base import BaseCommand, CommandSyntaxError
from marathoner.utils.user_input import get_input





class Command(BaseCommand):
    syntax = 'tag delete <tag>'
    help = 'delete the selected tag'


    cmd_re = re.compile(r'^\s*tag\s+delete\s+(\w+)\s*$', re.IGNORECASE)