1 parent bca1b6d commit 6807e9eCopy full SHA for 6807e9e
1 file changed
src/test/resources/json-when-flag.sh
@@ -0,0 +1,8 @@
1
+#!/bin/sh
2
+for arg in "$@"; do
3
+ if [ "$arg" = "--json" ]; then
4
+ printf '%s\n' '{"type":"done","message":"json-enabled"}'
5
+ exit 0
6
+ fi
7
+done
8
+printf '%s\n' 'not-json'
0 commit comments