# Path: linux_story/story/challenges/CompanionMisc.py
# class StepTemplateMkdir(StepTemplateEleanorBernard):
#     TerminalClass = TerminalMkdirBernard
# 
# Path: linux_story/common.py
# def get_story_file(name):
#     return os.path.join(fallback_story_files_dir, name)
# 
# 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.common import get_story_file
from linux_story.step_helper_functions import unblock_cd_commands
# A chapter of the story




# ----------------------------------------------------------------------------------------


class Step1(StepTemplateMkdir):
    story = [
        _("You are back in town. {{bb:Eleanor}} waves her arms and points at a building in the distance."),
        _("\n{{lb:Look around}} to see where {{bb:Eleanor}} is pointing.")
    ]

    start_dir = "~/town/east"
    end_dir = "~/town/east"

    hints = [
        _("{{rb:Use}} {{yb:ls}} {{rb:to look around.}}")
    ]

    commands = [
        "ls",
        "ls -a"
    ]

    deleted_items = ["~/town/east/shed-shop/Eleanor"]
    file_list = [
        {
            "path": "~/town/east/Eleanor",

# Path: linux_story/story/challenges/CompanionMisc.py
# class StepTemplateMkdir(StepTemplateEleanorBernard):
#     TerminalClass = TerminalMkdirBernard
# 
# Path: linux_story/common.py
# def get_story_file(name):
#     return os.path.join(fallback_story_files_dir, name)
# 
# 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_26.py
from linux_story.story.challenges.CompanionMisc import StepTemplateMkdir
from linux_story.common import get_story_file
from linux_story.step_helper_functions import unblock_cd_commands

# A chapter of the story




# ----------------------------------------------------------------------------------------


class Step1(StepTemplateMkdir):
    story = [
        _("You are back in town. {{bb:Eleanor}} waves her arms and points at a building in the distance."),
        _("\n{{lb:Look around}} to see where {{bb:Eleanor}} is pointing.")
    ]

    start_dir = "~/town/east"
    end_dir = "~/town/east"

    hints = [
        _("{{rb:Use}} {{yb:ls}} {{rb:to look around.}}")
    ]

    commands = [
        "ls",
        "ls -a"
    ]

    deleted_items = ["~/town/east/shed-shop/Eleanor"]
    file_list = [
        {
            "path": "~/town/east/Eleanor",

            "contents": get_story_file("Eleanor"),