summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
2d90965)
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>
{
"label": "Configure Arvados",
"type": "shell",
{
"label": "Configure Arvados",
"type": "shell",
- "command": "scripts/configure-arv ${input:api_host} ${input:api_token}",
+ "command": "scripts/configure-arv '${input:api_info}'",
"problemMatcher": []
},
{
"problemMatcher": []
},
{
- "description": "Value for ARVADOS_API_HOST"
- },
- {
- "id": "api_token",
- "type": "promptString",
- "description": "Value for ARVADOS_API_TOKEN",
- "password": true
+ "description": "Current API_TOKEN and API_HOST from Workbench"
},
{
"id": "project_uuid",
},
{
"id": "project_uuid",
-echo $1 > API_HOST
-echo $2 > API_TOKEN
+echo "$*" | sed 's/.*ARVADOS_API_TOKEN=\([^ ]*\).*/\1/' > API_TOKEN
+echo "$*" | sed 's/.*ARVADOS_API_HOST=\([^ ]*\).*/\1/' > API_HOST
chmod og-rw API_HOST API_TOKEN
\ No newline at end of file
chmod og-rw API_HOST API_TOKEN
\ No newline at end of file