diff options
| author | Grayson Koonce <grayson.koonce@gmail.com> | 2016-09-30 15:34:03 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-09-30 15:34:03 -0700 |
| commit | cba441714f357b9b25d5c0cacbfb2e376bbbe679 (patch) | |
| tree | 2db58d65d94946f0c5ed6b07162bdcb648a255ca /main.go | |
| parent | 4754d5ec7e5d162585f2ebdb259132330e9fdf55 (diff) | |
| download | sally-cba441714f357b9b25d5c0cacbfb2e376bbbe679.tar.gz | |
Starting point (#1)
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -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) + } +} |