mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-15 04:01:41 +00:00
15 lines
1011 B
Plaintext
15 lines
1011 B
Plaintext
#define GENERATE_JOB_CONFIG_VERB_DESC "Generate a job configuration (jobconfig.toml) file for the server. If TOML file already exists, will re-generate it based off the already existing config values. Will migrate from the old jobs.txt format if necessary."
|
|
|
|
ADMIN_VERB(generate_job_config, R_SERVER, "Generate Job Configuration", GENERATE_JOB_CONFIG_VERB_DESC, ADMIN_CATEGORY_SERVER)
|
|
if(tgui_alert(user, "This verb is not at all useful if you are not a server operator with access to the configuration folder. Do you wish to proceed?", "Generate jobconfig.toml for download", list("Yes", "No")) != "Yes")
|
|
return
|
|
|
|
if(SSjob.generate_config(user))
|
|
to_chat(user, span_notice("Job configuration file generated. Download prompt should appear now."))
|
|
else
|
|
to_chat(user, span_warning("Job configuration file could not be generated. Check the server logs / runtimes / above warning messages for more information."))
|
|
|
|
BLACKBOX_LOG_ADMIN_VERB("Generate Job Configuration")
|
|
|
|
#undef GENERATE_JOB_CONFIG_VERB_DESC
|