ui: Add 'Create New Site/Flyer' to the interactive management menu

This commit is contained in:
thePR0M3TH3AN committed 2026-03-13 14:37:21 -04:00
1 parent 2a967c950b
commit 362f5cdd4d
1 file changed
+11
+11
View File
@@ -689,6 +689,7 @@ def manage_servers():
status_text = "[ON] " if running else "[OFF]"
choices.append(Choice(s, f"{status_text} {s}"))
choices.insert(0, Choice("create_new", "--- Create New Site/Flyer ---"))
choices.append(Choice("export_all", "--- Export All Sites ---"))
choices.append(Choice("import_multiple", "--- Import Multiple Sites ---"))
choices.append(Choice(None, "Exit"))
@@ -701,6 +702,16 @@ def manage_servers():
if selected is None:
break
if selected == "create_new":
config_path = ROOT / "src" / "config.json"
interactive_update(str(config_path))
build_assets(str(config_path))
try:
serve(str(config_path))
except SystemExit:
pass
continue
if selected == "export_all":
export_all_sites()
continue