We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
--
1 parent a562009 commit df2a36fCopy full SHA for df2a36f
testdata/simple.ahoy.yml
@@ -2,3 +2,9 @@ ahoyapi: v2
2
commands:
3
echo:
4
cmd: echo "$@"
5
+
6
+ list:
7
+ cmd: ls -a "$@"
8
9
+ whalesay:
10
+ cmd: docker run --rm docker/whalesay cowsay -f dragon "$@"
tests/simple.bats
@@ -13,3 +13,8 @@
13
result="$(./ahoy -f testdata/simple.ahoy.yml echo something)"
14
[ "$result" == "something" ]
15
}
16
17
+@test "run a simple ahoy command (ls -a) with an extra parameter (-l)" {
18
+ run ./ahoy -f testdata/simple.ahoy.yml list -- -l
19
+ [ "${#lines[@]}" -gt 13 ]
20
+}
0 commit comments