commit d21fd2c6329839a8d895612b0a2e82a949d347cf
parent d6e3216fc1765b74b9d217b93b9460736cf3b5d2
Author: Erik Letson <hmagellan@hmagellan.com>
Date: Sun, 28 Mar 2021 22:44:43 -0500
display init
Diffstat:
3 files changed, 23 insertions(+), 0 deletions(-)
diff --git a/data/hierarchy.json b/data/hierarchy.json
@@ -0,0 +1,2 @@
+{
+}
diff --git a/options.json b/options.json
@@ -0,0 +1,3 @@
+{
+ "sync_location": "/var/www/html"
+}
diff --git a/pystatsite.py b/pystatsite.py
@@ -1 +1,19 @@
+#! /usr/bin/env python
+
+import json, os
from src import compose, sync, add
+
+# Values
+options_file = "options.json"
+
+# Loading
+with open(options_file) as o: options = json.load(o)
+
+# Interface
+print("==============")
+print("| PYSTATSITE |")
+print("==============")
+
+print("Please choose an option:")
+print("- 1) Create a new web page")
+print("- 2) Sync site to location '" + options["sync_location"] + "'")