Skip to content

Commit 115a215

Browse files
authored
Add tests for passing args to run scripts (#647)
## Summary TSIA, pretty straight-forward. ## How was it tested? ``` > go test -run TestScripts/run/args.test ./testscripts/testscripts_test.go ```
1 parent da82540 commit 115a215

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

testscripts/run/args.test.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Test passing arguments to a script
2+
exec devbox run ekko hello there
3+
stdout 'hello there'
4+
5+
-- devbox.json --
6+
{
7+
"packages": [],
8+
"shell": {
9+
"scripts": {
10+
"ekko": "echo $@"
11+
}
12+
}
13+
}

0 commit comments

Comments
 (0)