Create graphql package

Signed-off-by: jffarge <slumbering.pierrot@gmail.com>
This commit is contained in:
jffarge
2021-10-22 17:39:16 +02:00
committed by jffarge
parent 79f86227f3
commit 6825309f31
7 changed files with 148 additions and 2 deletions

View File

@@ -44,7 +44,7 @@ import (
}
command: #"""
curlArgs=(
"$URL"
"$URL"
-L --fail --silent --show-error
--write-out "%{http_code}"
-X "$METHOD"
@@ -60,7 +60,6 @@ import (
if [ -e /token ]; then
curlArgs+=("-H" "Authorization: bearer $(cat /token)")
fi
curl "${curlArgs[@]}" > /status
"""#
}