fix: update quest [explore]

This commit is contained in:
Chen, Tai-Lin committed 2024-07-03 00:34:32 +08:00
1 parent 441909efd5
commit c8d2320bf5
1 file changed
+21 -13
+21 -13
View File
@@ -13,8 +13,8 @@ stages:
- id: start - id: start
task: 按下 `start` 按鈕開始教程 task: 按下 `start` 按鈕開始教程
condition: condition:
output: command:
- start - ^echo start$
responses: responses:
- content: | - content: |
在終端機中,並沒有圖形介面可以讓你查看資料夾的內容。 在終端機中,並沒有圖形介面可以讓你查看資料夾的內容。
@@ -31,7 +31,7 @@ stages:
- start - start
condition: condition:
command: command:
- ls - ^ls$
exceptions: exceptions:
- condition: - condition:
not: not:
@@ -62,11 +62,18 @@ stages:
- ls - ls
condition: condition:
pwd: pwd:
- /home/commander/folder1 - ^/home/commander/folder1$
exceptions: exceptions:
- condition:
command:
- folderl
responses:
- type: narrative
content: |
`folder1` 的最後是數字 `1` 不是字母 `l`。
- condition: - condition:
pwd: pwd:
- /home/commander - ^/home/commander$
responses: responses:
- type: narrative - type: narrative
content: content:
@@ -74,12 +81,13 @@ stages:
- condition: - condition:
not: not:
pwd: pwd:
- /home/commander - ^/home/commander$
responses: responses:
- type: narrative - type: narrative
content: | content: |
請先回到 `/home/commander/` 資料夾 請先回到 `/home/commander/` 資料夾
輸入 `cd ~` 來返回 `/home/commander/` 資料夾 輸入 `cd ~` 來返回 `/home/commander/` 資料夾
再輸入 `cd folder1` 來進入 `folder1` 資料夾
responses: responses:
- content: | - content: |
你成功的進入 `folder1` 資料夾了。 你成功的進入 `folder1` 資料夾了。
@@ -97,9 +105,9 @@ stages:
- cd-folder1 - cd-folder1
condition: condition:
pwd: pwd:
- /home/commander/folder1 - ^/home/commander/folder1$
command: command:
- ls - ^ls$
responses: responses:
- content: | - content: |
你現在可以看到 `folder1` 資料夾中有兩的檔案,分別是 `file1.txt` 跟 `file2.txt`。 你現在可以看到 `folder1` 資料夾中有兩的檔案,分別是 `file1.txt` 跟 `file2.txt`。
@@ -115,7 +123,7 @@ stages:
- ls-folder1 - ls-folder1
condition: condition:
pwd: pwd:
- /home/commander - ^/home/commander$
responses: responses:
- content: | - content: |
你成功的回到上一層資料夾了。 你成功的回到上一層資料夾了。
@@ -130,7 +138,7 @@ stages:
- cd-.. - cd-..
condition: condition:
pwd: pwd:
- /home/commander/folder2 - ^/home/commander/folder2$
responses: responses:
- content: | - content: |
你成功的進入 `folder2` 資料夾了。 你成功的進入 `folder2` 資料夾了。
@@ -144,9 +152,9 @@ stages:
- cd-folder2 - cd-folder2
condition: condition:
pwd: pwd:
- /home/commander/folder2 - ^/home/commander/folder2$
command: command:
- ls - ^ls$
responses: responses:
- content: | - content: |
你看到了 `folder2` 資料夾中的檔案,分別是 `file3.txt` 跟 `file4.txt`。 你看到了 `folder2` 資料夾中的檔案,分別是 `file3.txt` 跟 `file4.txt`。
@@ -160,7 +168,7 @@ stages:
- ls-folder2 - ls-folder2
condition: condition:
pwd: pwd:
- /home/commander - ^/home/commander$
responses: responses:
- content: | - content: |
你成功的回到原本的資料夾了。 你成功的回到原本的資料夾了。