Misc Changes
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
package solutions.tretter.githugandroid
|
||||
|
||||
/**
|
||||
* Port of the upstream ruby-githug `init` 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 initLevel(): Level = level(
|
||||
id = "init",
|
||||
title = "Init",
|
||||
description = "A new directory, `git_hug`, has been created; initialize an empty repository in it.",
|
||||
hints = listOf("You can type `git --help` or `git` in your shell to get a list of available git commands."),
|
||||
commandSuggestions = listOf("git init", "git status"),
|
||||
setup = { RepoState() },
|
||||
validator = repoPredicate { it.initialized },
|
||||
testCases = listOf(
|
||||
levelTestCase("plain init", "git init"),
|
||||
),
|
||||
)
|
||||
Reference in New Issue
Block a user