package solutions.tretter.githugandroid

/**
 * Port of the upstream ruby-githug `remote` 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 remoteLevel(): Level = level(
    id = "remote",
    title = "Remote",
    description = "This project has a remote repository. Identify it.",
    hints = listOf("You are looking for a remote. You can run `git` for a list of commands."),
    commandSuggestions = listOf("git remote"),
    setup = { RepoState(initialized = true, remotes = mapOf("my_remote_repo" to "https://github.com/Gazler/githug"), branches = mapOf("master" to 0)) },
    validator = commandAnswer("my_remote_repo"),
    testCases = listOf(
        levelTestCase("answer remote name", "my_remote_repo"),
    ),
)
