package solutions.tretter.githugandroid

/**
 * Port of the upstream ruby-githug `clone` 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 cloneLevel(): Level = level(
    id = "clone",
    title = "Clone",
    description = "Clone the repository at https://github.com/Gazler/cloneme.",
    hints = listOf("You should have a look at this site: https://github.com/Gazler/cloneme."),
    commandSuggestions = listOf("git clone https://github.com/Gazler/cloneme"),
    setup = { RepoState() },
    validator = commandAnswer("git clone https://github.com/Gazler/cloneme"),
    testCases = listOf(
        levelTestCase("canonical clone", "git clone https://github.com/Gazler/cloneme"),
    ),
)
