GameServerManagers / GameServerManagers/LinuxGSM
Inputs as named variables
- 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
Assessment
This issue has not been assessed yet.