-
-
Notifications
You must be signed in to change notification settings - Fork 272
Open
Labels
Description
lots of lists are coming from some api in json format, i have wrote a wrapper script with curl
but may be good idea to add another values type for that...
"values": {
"web-request": "http://some-api.com"
}
which will return ["a", "b", "c", "d"]
wrapper for now is
"values": {
"script": "wrapper.sh 'http://something.com'"
}
#!/bin/bash
#wrapper.sh
res=`curl -s $1 | tr -d "[" | tr -d "]" | tr ',' '\n' | tr -d '"'`
echo "$res"
thanks