# Path: linux_story/story/challenges/CompanionMisc.py
# class StepTemplateMkdir(StepTemplateEleanorBernard):
#     TerminalClass = TerminalMkdirBernard
# 
# 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


from linux_story.story.challenges.CompanionMisc import StepTemplateMkdir
from linux_story.step_helper_functions import unblock_cd_commands
        _("Eleanor: {{Bb:OooOOoh, are there sweets in there?}}")
    )

    def check_command(self, line):
        # Using self._last_user_input because the line param is empty from being blocked.
        if self._last_user_input in self.commands:
            return True
        return StepTemplateMkdir.check_command(self, self._last_user_input)

    def next(self):
        return 25, 7


class Step7(StepTemplateMkdir):
    story = [
        _("Bernard: {{Bb:\"Oooh naughty, you can't look in there.\"}}"),
        _("\nLet's {{lb:leave}} the shed shop and go back to {{bb:east}} of town.")
    ]

    start_dir = "~/town/east/shed-shop"
    end_dir = "~/town/east"
    hints = [
        _("{{rb:Leave the shed-shop using}} {{yb:cd ..}}")
    ]
    companion_speech = (
        _("Eleanor: {{Bb:\"Yay, I like the library. Let's go back to town!\"}}")
    )

    def block_command(self, line):
        if line.startswith("cd"):

# Path: linux_story/story/challenges/CompanionMisc.py
# class StepTemplateMkdir(StepTemplateEleanorBernard):
#     TerminalClass = TerminalMkdirBernard
# 
# 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/challenge_25.py
from linux_story.story.challenges.CompanionMisc import StepTemplateMkdir
from linux_story.step_helper_functions import unblock_cd_commands

        _("Eleanor: {{Bb:OooOOoh, are there sweets in there?}}")
    )

    def check_command(self, line):
        # Using self._last_user_input because the line param is empty from being blocked.
        if self._last_user_input in self.commands:
            return True
        return StepTemplateMkdir.check_command(self, self._last_user_input)

    def next(self):
        return 25, 7


class Step7(StepTemplateMkdir):
    story = [
        _("Bernard: {{Bb:\"Oooh naughty, you can't look in there.\"}}"),
        _("\nLet's {{lb:leave}} the shed shop and go back to {{bb:east}} of town.")
    ]

    start_dir = "~/town/east/shed-shop"
    end_dir = "~/town/east"
    hints = [
        _("{{rb:Leave the shed-shop using}} {{yb:cd ..}}")
    ]
    companion_speech = (
        _("Eleanor: {{Bb:\"Yay, I like the library. Let's go back to town!\"}}")
    )

    def block_command(self, line):
        if line.startswith("cd"):

            return unblock_cd_commands(line)