feat: able to test files

This commit is contained in:
Lin, Hung-Shin authored and wancat committed 2023-10-29 17:41:38 +08:00
1 parent af27780763
commit 625c1a80da
5 files changed
+99 -28

No files matched your search

+8 -14
View File
@@ -136,22 +136,16 @@ stages:
content:
- You are using `less` or the output contains `wow`.
- id: nested-condition
task: Test nested condition
- id: test-file-exists
task: Test file exists
repeatable: true
condition:
$or:
- pwd:
- '^/etc/zsh$'
$not:
command:
- ls
- $not:
pwd:
- '^/etc/zsh$'
command:
- ls
command:
- ls
files:
- path: /home/commander/jail
type: folder
responses:
- type: narrative
content:
- You are in `/etc/zsh` and not using `ls`, or you are not in `/etc/zsh` and using `ls`.
- There is a jail