bugy / script-server

Web UI for your scripts with execution management
Other
1.61k stars 249 forks source link

Load data from script execution doesn't work #442

Closed drehelis closed 1 year ago

drehelis commented 3 years ago

Hi,

Seems like below feature is broken on dev https://github.com/bugy/script-server/wiki/Script-config#script

  "parameters": [
    {
      "name": "Test",
      "param": "--profile",
      "type": "list",
      "values": [
        "Test 1",
        "Test 2"
      ],
      "required": true
    },
    {
      "name": "Test 2",
      "param": "--test",
      "values": {
        "script": "echo ${Test}"
      },
      "required": true
    }
  ]

This used to work in 1.6

bugy commented 3 years ago

Hi @autogun it works for me, (if I add "type": "list" to the second parameter)

bugy commented 3 years ago

image

drehelis commented 3 years ago

I can swear it also worked with "type": "text", no?

bugy commented 3 years ago

I don't think so. How is it supposed to work?

drehelis commented 3 years ago

This is embarrassing, I think I have custom code which I forgot about :-D