aboutsummaryrefslogtreecommitdiff
path: root/main.go
blob: 2625a5b5978b3759e98928669712b4f468ed0f1d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package main // import "go.uber.org/sally"

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)
	}
}