From ad9e9c8a03c6d23adb65543bd6b5fb1d07e4f758 Mon Sep 17 00:00:00 2001 From: alex Date: Sun, 29 Oct 2023 11:58:04 +0100 Subject: [PATCH] added checkbox --- groupTasks/groups/roese/index.json | 57 +++++++++++++++++++++++------- main.go | 2 +- 2 files changed, 46 insertions(+), 13 deletions(-) diff --git a/groupTasks/groups/roese/index.json b/groupTasks/groups/roese/index.json index f088df2..4f87671 100644 --- a/groupTasks/groups/roese/index.json +++ b/groupTasks/groups/roese/index.json @@ -1,13 +1,46 @@ { - "category": "Roese", - "name": "Roese Home", - "tasks": [ - { - "name": "Haha", - "onFinish": "pause", - "undoPossible": false, - "repeatPossible": false, - "scriptPath": "haha.py" - } - ] -} \ No newline at end of file + "category": "Roese", + "name": "Roese Home", + "globalInputs": [ + { + "parameterName": "kundenname", + "type": "text", + "displayName": "Name des Kunden" + }, + { + "parameterName": "kiste", + "type": "number", + "displayName": "Nummer der Kiste" + }, + { + "parameterName": "kiste2", + "type": "textarea", + "displayName": "Nummer der zweiten Kiste yooo" + }, + { + "parameterName": "farbig", + "type": "checkbox", + "displayName": "Farbig", + "options": { + "default": false + } + }, + { + "parameterName": "blackandwhite", + "type": "checkbox", + "displayName": "Black and White", + "options": { + "default": true + } + } + ], + "tasks": [ + { + "name": "Haha", + "onFinish": "pause", + "undoPossible": false, + "repeatPossible": false, + "scriptPath": "haha.py" + } + ] +} diff --git a/main.go b/main.go index 04f74c1..8134a62 100644 --- a/main.go +++ b/main.go @@ -74,7 +74,7 @@ INVEX_API_TOKEN=api_token`) config.LoadConfig() - rslogger.InitLogger(false, config.Cfg.ColorizedOutput, config.Cfg.LogManagerServerUrl) + rslogger.InitLogger(config.Cfg.Debug, config.Cfg.ColorizedOutput, config.Cfg.LogManagerServerUrl) if os.Getenv("DOCKER") != "" { fmt.Println("Waiting for mariadb docker")