# Path: linux_story/step_helper_functions.py
# def unblock_cd_commands(line):
#     if line.startswith("mkdir") or \
#             (line.startswith("mv") and not line.strip() == 'mv --help'):
#         print _('Nice try! But you do not need that command for this challenge')
#         return True
#     return False
# 
# Path: linux_story/story/challenges/CompanionMisc.py
# class StepTemplateMkdir(StepTemplateEleanorBernard):
#     TerminalClass = TerminalMkdirBernard


from linux_story.step_helper_functions import unblock_cd_commands
from linux_story.story.challenges.CompanionMisc import StepTemplateMkdir
    start_dir = "~/town/east"
    end_dir = "~/town/east"
    hints = [
        _("{{rb:Look around with}} {{yb:ls}}{{rb:.}}")
    ]
    deleted_items = ["~/town/Eleanor"]
    file_list = [{"path": "~/town/east/Eleanor"}]

    companion_speech = _("Eleanor: {{Bb:I can't see my parents anywhere...but there's a weird building there.}}")

    def next(self):
        return 24, 2


class Step2(StepTemplateMkdir):
    story = [
        _("You see a {{bb:shed-shop}}, {{bb:library}} and {{bb:restaurant}}."),
        _("\nEleanor: {{Bb:\"Hey, what is that shed-shop?\"}}\n"),
        _("{{Bb:\"Let's}} {{lb:go in}}{{Bb:!\"}}")
    ]

    start_dir = "~/town/east"
    end_dir = "~/town/east/shed-shop"
    hints = [
        _("{{rb:Use}} {{yb:cd shed-shop}} {{rb:to go in the shed-shop.}}")
    ]

    companion_speech = _("Eleanor: {{Bb:Do you think they sell candy?}}")

    def block_command(self, line):

# Path: linux_story/step_helper_functions.py
# def unblock_cd_commands(line):
#     if line.startswith("mkdir") or \
#             (line.startswith("mv") and not line.strip() == 'mv --help'):
#         print _('Nice try! But you do not need that command for this challenge')
#         return True
#     return False
# 
# Path: linux_story/story/challenges/CompanionMisc.py
# class StepTemplateMkdir(StepTemplateEleanorBernard):
#     TerminalClass = TerminalMkdirBernard


# Path: linux_story/story/challenges/challenge_24.py
from linux_story.step_helper_functions import unblock_cd_commands
from linux_story.story.challenges.CompanionMisc import StepTemplateMkdir

    start_dir = "~/town/east"
    end_dir = "~/town/east"
    hints = [
        _("{{rb:Look around with}} {{yb:ls}}{{rb:.}}")
    ]
    deleted_items = ["~/town/Eleanor"]
    file_list = [{"path": "~/town/east/Eleanor"}]

    companion_speech = _("Eleanor: {{Bb:I can't see my parents anywhere...but there's a weird building there.}}")

    def next(self):
        return 24, 2


class Step2(StepTemplateMkdir):
    story = [
        _("You see a {{bb:shed-shop}}, {{bb:library}} and {{bb:restaurant}}."),
        _("\nEleanor: {{Bb:\"Hey, what is that shed-shop?\"}}\n"),
        _("{{Bb:\"Let's}} {{lb:go in}}{{Bb:!\"}}")
    ]

    start_dir = "~/town/east"
    end_dir = "~/town/east/shed-shop"
    hints = [
        _("{{rb:Use}} {{yb:cd shed-shop}} {{rb:to go in the shed-shop.}}")
    ]

    companion_speech = _("Eleanor: {{Bb:Do you think they sell candy?}}")

    def block_command(self, line):

        return unblock_cd_commands(line)