package solutions.tretter.githugandroid

/**
 * Port of the upstream ruby-githug `clone_to_folder` level.
 *
 * Setup documents the repository shape the learner explores. Evaluation is kept
 * state-based whenever the exercise changes repository objects; answer-only
 * levels intentionally validate the answer entered at the prompt.
 */
internal fun cloneToFolderLevel(): Level = level(
    id = "clone_to_folder",
    title = "Clone To Folder",
    description = "Clone the repository at https://github.com/Gazler/cloneme into the folder `my_cloned_repo`.",
    hints = listOf("This is like the last level, `git clone` has an optional argument."),
    commandSuggestions = listOf("git clone https://github.com/Gazler/cloneme my_cloned_repo"),
    setup = { RepoState() },
    validator = commandAnswer("git clone https://github.com/Gazler/cloneme my_cloned_repo"),
    testCases = listOf(
        levelTestCase("clone into folder", "git clone https://github.com/Gazler/cloneme my_cloned_repo"),
    ),
)
