aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go23
1 files changed, 23 insertions, 0 deletions
diff --git a/main.go b/main.go
new file mode 100644
index 0000000..b0cc14f
--- /dev/null
+++ b/main.go
@@ -0,0 +1,23 @@
+package main
+
+import (
+ "flag"
+ "log"
+)
+
+//go:generate go-bindata templates/
+
+func main() {
+ yml := flag.String("yml", "sally.yaml", "yaml file to read config from")
+ dir := flag.String("dir", "out", "directory to write html files to")
+ flag.Parse()
+
+ c, err := Parse(*yml)
+ if err != nil {
+ log.Fatal(err)
+ }
+
+ if err := Write(c, *dir); err != nil {
+ log.Fatal(err)
+ }
+}