From c340479002ac508a83f62722b0f8a4a92ddc55ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerg=C5=91=20Jedlicska?= Date: Wed, 13 Dec 2023 17:58:44 +0100 Subject: [PATCH] update to file based function inputs --- .gitignore | 2 ++ .vscode/launch.json | 7 +------ example.function_inputs.json | 20 ++++++++++++++++++++ 3 files changed, 23 insertions(+), 6 deletions(-) create mode 100644 example.function_inputs.json diff --git a/.gitignore b/.gitignore index ac27166..e87cb1c 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/.vscode/launch.json b/.vscode/launch.json index bbae7fb..e62eb85 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -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"] } ] } diff --git a/example.function_inputs.json b/example.function_inputs.json new file mode 100644 index 0000000..9953806 --- /dev/null +++ b/example.function_inputs.json @@ -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 + } +}