mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2024-12-20 20:33:11 +01:00
grey cli hints in level description
This commit is contained in:
parent
328122823b
commit
0781649227
2 changed files with 6 additions and 0 deletions
|
@ -7,6 +7,9 @@ You've been accepted to time travel school! Yay! It's your first day! Your teach
|
|||
|
||||
"To do anything with a time machine, you first need to initialize it! Go ahead, try it!"
|
||||
|
||||
[cli]
|
||||
Instead of playing a card, you can slo type 'git init' directly into your terminal!
|
||||
|
||||
[setup]
|
||||
|
||||
rm -rf .git
|
||||
|
|
|
@ -28,6 +28,9 @@ func load(path):
|
|||
description = monospace_regex.sub(description, "\n [code]$1[/code]", true)
|
||||
description = description.split("---")
|
||||
|
||||
var cli_hints = "\n\n[color=#787878]"+config.get("cli", "")+"[/color]"
|
||||
description[0] = description[0] + cli_hints
|
||||
|
||||
congrats = config.get("congrats", "Good job, you solved the level!\n\nFeel free to try a few more things or click 'Next level'.")
|
||||
cards = Array(config.get("cards", "").split(" "))
|
||||
if cards == [""]:
|
||||
|
|
Loading…
Reference in a new issue