This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Use this script to test if a given TCP host/port are available | |
cmdname=$(basename $0) | |
echoerr() { if [[ $QUIET -ne 1 ]]; then echo "$@" 1>&2; fi } | |
usage() | |
{ | |
cat << USAGE >&2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
╰─ command fastlane test ─╯ | |
[15:51:38]: ------------------------------------------------- | |
[15:51:38]: --- Step: Verifying required fastlane version --- | |
[15:51:38]: ------------------------------------------------- | |
[15:51:38]: Your fastlane version 2.28.3 matches the minimum requirement of 2.28.3 ✅ | |
[15:51:38]: ------------------------------ | |
[15:51:38]: --- Step: default_platform --- | |
[15:51:38]: ------------------------------ | |
[15:51:38]: Driving the lane 'ios test' 🚀 | |
[15:51:38]: ----------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CurlInterceptor extends Interceptor { | |
@override | |
void onRequest(RequestOptions options, RequestInterceptorHandler handler) { | |
try { | |
final qp = options.queryParameters; | |
final h = options.headers; | |
final d = options.data; | |
final curl = | |
'curl -X ${options.method} \'${options.baseUrl}${options.path}' + | |
(qp.length != 0 ? qp.keys.fold('', (value, key) => '$value${value.length == 0 ? '?' : '&'}$key=${qp[key]}\'') : '\'') + |