Skip to content

Commit

Permalink
update to file based function inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
gjedlicska committed Dec 13, 2023
1 parent 3dd2c06 commit c340479
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Created by https://www.toptal.com/developers/gitignore/api/visualstudiocode,python,pycharm
# Edit at https://www.toptal.com/developers/gitignore?templates=visualstudiocode,python,pycharm

function_inputs.json

**/.env
**/.envrc

Expand Down
7 changes: 1 addition & 6 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,7 @@
"console": "integratedTerminal",
"justMyCode": true,
"envFile": "${workspaceFolder}/.env",
"args": [
"run",
"{\"projectId\": \"843d07eb10\", \"modelId\": \"base design\", \"versionId\": \"2a32ccfee1\", \"speckleServerUrl\": \"https://latest.speckle.systems\"}",
// make sure to use camelCase for variable names
"{\"forbiddenSpeckleType\": \"Objects.Geometry.Brep\"}"
]
"args": ["run", "function_inputs.json"]
}
]
}
20 changes: 20 additions & 0 deletions example.function_inputs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"speckleToken": "YOUR SPEKCLE TOKEN",
"functionInputs": {
"whisperMessage": "you are doing something weird",
"forbiddenSpeckleType": ""
},
"automationRunData": {
"project_id": "project id",
"model_id": "model id",
"branch_name": "branch name",
"version_id": "version id",
"speckle_server_url": "https://latest.speckle.systems",
"automation_id": "automation id",
"automation_revision_id": "automation revision id",
"automation_run_id": "automation run id",
"function_id": "function id",
"function_name": "function name",
"function_logo": null
}
}

0 comments on commit c340479

Please sign in to comment.