From d4446186cd0fb6e80ef573a682bd6c2f2c1cb6b8 Mon Sep 17 00:00:00 2001 From: "Chen, Tai-Lin" Date: Sun, 26 Nov 2023 23:32:31 +0800 Subject: [PATCH] improve exceptions --- quests/exceptions.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/quests/exceptions.yml b/quests/exceptions.yml index 7ab256f..ff6b39f 100644 --- a/quests/exceptions.yml +++ b/quests/exceptions.yml @@ -50,6 +50,22 @@ exceptions: content: - '!! `ls` 後面要加空格 !!' + - condition: + command: + - ^cat\S*$ + responses: + - type: narrative + content: + - '!! `cat` 後面要加空格 !!' + + - condition: + command: + - ^touch\S*$ + responses: + - type: narrative + content: + - '!! `touch` 後面要加空格 !!' + - condition: not: command: @@ -69,6 +85,14 @@ exceptions: content: - '!! `mv` 後面要加空格 !!' + - condition: + command: + - ^mkdir\S*$ + responses: + - type: narrative + content: + - '!! `mkdir` 後面要加空格 !!' + - condition: command: - ^rmdir\S*$