GameServerManagers / GameServerManagers/LinuxGSM

Inputs as named variables

Open
#1,376 3 comments 0 reactions 0 assignees View on GitHub
info: docker type: feature
Dominant language
Shell
Stars
4.9k
Forks
864
PR merge metrics
No merged PRs in 30d

Description

Hi all,

Something I started poking at with my LGSM branch was the inputs. I created a function to collect input which has four inputs. Prompt, variable_name, default, and options. It reads from environment variables and the script config to see if the user has already set the answer to a prompt, otherwise it displays the prompt and waits for input. If the script is on "unattended" mode, it uses default without stopping.

An option which is added is "A", which will save the choice to the script config file for the future. For example, running "console" I can answer "A" to the pre-console prompt so that it just goes right into console, and the same for if I run "console" and it needs to start the server.

The code is from a much older LGSM fork, I haven't finished merging the mainline updates to my branch, but if this sounds interesting I'll make a separate fork to put this in.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.