Insert a level in the intro that forces players to use the command line

This commit is contained in:
blinry 2021-02-18 16:03:46 +01:00
parent 63f093189b
commit 21f55fd705
6 changed files with 37 additions and 6 deletions

View file

@ -11,6 +11,10 @@ To learn how that works, we need to learn about the "index"! In the index, we ca
Initially, the index is empty. To make a commit that contains a new file, we need to add it! Initially, the index is empty. To make a commit that contains a new file, we need to add it!
[cli]
You can use tab completion in the terminal! Start typing a filename, then press the tab key to complete its name. This will often save you some time!
[setup] [setup]
echo "The candle is burning with a blue flame." > candle echo "The candle is burning with a blue flame." > candle

29
levels/intro/cli Normal file
View file

@ -0,0 +1,29 @@
title = The command line
cards =
[description]
These playing cards are designed to be easy to use and to remember! We'd suggest sticking to them if you don't have a lot of experience with Git!
[cli]
But there's another way to interact with Git:
Try typing `git init` into the black terminal below, and pressing the enter key!
[setup]
rm -rf .git
[win]
# Initialize the time machine!
test -d .git
[congrats]
Cool! When you don't use the cards in a level, you'll get a golden sparkling "command line badge"! See it in the top left?
The command line is pretty powerful! Often, you can use it to solve tasks faster compared to using a graphical interface.
It's also totally optional in this game. But if you want to learn how to use Git from the command line, we invite you to this challenge! :)

View file

@ -7,11 +7,7 @@ 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!" "To do anything with a time machine, you first need to initialize it!"
Drag the blue card up to play it! Drag that blue card up to play it!
[cli]
Instead of using the card, you can also type `git init` into the black box below, and press the enter key!
[setup] [setup]

View file

@ -15,6 +15,8 @@ To clone the teacher's repo via the command line, you need this command:
(Don't forget the dot at the end!) (Don't forget the dot at the end!)
To go through old commands, you can press arrow up and down. That way, you don't have to type in long commands twice.
[congrats] [congrats]
Welcome to time travel school! :) I'll see you for your first class tomorrow! Welcome to time travel school! :) I'll see you for your first class tomorrow!

View file

@ -1,5 +1,6 @@
risky risky
copies copies
init init
cli
commit commit
remote remote

View file

@ -1,2 +1 @@
pr pr
gitignore