feat: parse all quest

This commit is contained in:
Justin Lin committed 2025-04-16 19:06:47 +08:00
1 parent ed4d04b658
commit 61d1871e95
9 files changed
+77 -18

No files matched your search

+6 -6
View File
@@ -179,9 +179,9 @@ stages:
你看到了終端機輸出 `You are lucky!` 這個字串。
恭喜你,你已經完成了這個課程!
exceptions:
condition:
command: ^echo help$
responses:
- content: |
你需要先移動到 `commands` 資料夾,再使用相對路徑執行 `lucky` 檔案。
請先輸入 `cd commands` 來移動到 `commands` 資料夾,再使用相對路徑 `./lucky` 來執行 `lucky` 檔案。
- condition:
command: ^echo help$
responses:
- content: |
你需要先移動到 `commands` 資料夾,再使用相對路徑執行 `lucky` 檔案。
請先輸入 `cd commands` 來移動到 `commands` 資料夾,再使用相對路徑 `./lucky` 來執行 `lucky` 檔案。
+3
View File
@@ -68,3 +68,6 @@ stages:
condition:
command:
- ^echo finish$
responses:
- content: |
恭喜你,你已經完成了這個關卡!
+4 -3
View File
@@ -69,9 +69,10 @@ stages:
not:
pwd:
- ^/home/commander$
content: |
請留在 `/home/commander` 資料夾中。
請輸入 `cd ~` 回到 `/home/commander` 資料夾。
responses:
- content: |
請留在 `/home/commander` 資料夾中。
請輸入 `cd ~` 回到 `/home/commander` 資料夾。
responses:
- content: |
你現在知道 `folder` 資料夾的內容了。