mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-07 19:10:12 +08:00
quest: "move" change optional hint to exception
This commit is contained in:
1 parent
2c4bd67996
commit
cd03277fd4
1 file changed
+10
-13
+10
-13
@@ -188,19 +188,6 @@ stages:
|
|||||||
- 試著將 `docs/hello.txt` 移動到家目錄底下的 `hi.txt`。
|
- 試著將 `docs/hello.txt` 移動到家目錄底下的 `hi.txt`。
|
||||||
- 如果你不知道怎麼做,可以輸入 `echo hint` 來取得提示。
|
- 如果你不知道怎麼做,可以輸入 `echo hint` 來取得提示。
|
||||||
|
|
||||||
- id: hint
|
|
||||||
requirements:
|
|
||||||
- ls-docs
|
|
||||||
condition:
|
|
||||||
command:
|
|
||||||
- ^echo hint$
|
|
||||||
responses:
|
|
||||||
- type: narrative
|
|
||||||
content:
|
|
||||||
- 你可以使用 `mv docs/hello.txt hi.txt` 來完成這個任務。
|
|
||||||
hints:
|
|
||||||
- 使用 `mv docs/hello.txt hi.txt` 來將 `docs/hello.txt` 移動到家目錄底下的 `hi.txt`
|
|
||||||
|
|
||||||
- id: END
|
- id: END
|
||||||
requirements:
|
requirements:
|
||||||
- ls-docs
|
- ls-docs
|
||||||
@@ -218,3 +205,13 @@ stages:
|
|||||||
content:
|
content:
|
||||||
- 你做得很好!
|
- 你做得很好!
|
||||||
- 你已經學會如何移動檔案與資料夾了!
|
- 你已經學會如何移動檔案與資料夾了!
|
||||||
|
exceptions:
|
||||||
|
- condition:
|
||||||
|
command:
|
||||||
|
- ^echo hint$
|
||||||
|
responses:
|
||||||
|
- type: narrative
|
||||||
|
content:
|
||||||
|
- 你可以使用 `mv docs/hello.txt hi.txt` 來完成這個任務。
|
||||||
|
hints:
|
||||||
|
- 使用 `mv docs/hello.txt hi.txt` 來將 `docs/hello.txt` 移動到家目錄底下的 `hi.txt`
|
||||||
Reference in new issue
Block a user