improve exceptions

This commit is contained in:
Chen, Tai-Lin committed 2023-11-26 23:32:31 +08:00
1 parent 68492cd932
commit d4446186cd
1 file changed
+24
+24
View File
@@ -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*$