bugy / script-server

Web UI for your scripts with execution management
Other
1.52k stars 244 forks source link

add option for default in list to take first item whatever it is #718

Open yosefy opened 7 months ago

yosefy commented 7 months ago

most of the time i need to add new version to the list and change the default may be we can add some somehow that default will take first one?

thanks

bugy commented 7 months ago

I'm a bit hesitant to add this feature, to be honest, it seems a bit too much fine-tuning and complicates the configuration. May be you could use a script for default value? which will read the json file and take the first value

yosefy commented 7 months ago

ah? it is possible to use script in any option property?

bugy commented 7 months ago

not in any, but it's possible for "default": https://github.com/bugy/script-server/wiki/Script-config#--default

yosefy commented 7 months ago

clear. thanks

On Mon, Nov 27, 2023 at 12:36 PM Iaroslav Shepilov @.***> wrote:

not in any, but it's possible for "default": https://github.com/bugy/script-server/wiki/Script-config#--default

— Reply to this email directly, view it on GitHub https://github.com/bugy/script-server/issues/718#issuecomment-1827571313, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADCXF3MCC4FBLNQXEJ5DJ5LYGRUJBAVCNFSM6AAAAAA7RSZ676VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRXGU3TCMZRGM . You are receiving this because you authored the thread.Message ID: @.***>