1 parent 26e941e commit 60f0f86Copy full SHA for 60f0f86
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