kiln/main.go

26 lines
329 B
Go
Raw Normal View History

2020-09-22 20:42:14 +00:00
package main
import (
"log"
)
func main() {
if err := run(); err != nil {
log.Fatal(err)
}
}
func run() error {
2020-09-22 23:46:30 +00:00
site, err := LoadSite("src")
2020-09-22 20:42:14 +00:00
if err != nil {
return err
}
2020-09-23 01:11:56 +00:00
if err := site.Manipulate(site.Directory); err != nil {
2020-09-22 20:42:14 +00:00
return err
}
2020-09-22 23:46:30 +00:00
if err := site.Write("dst"); err != nil {
2020-09-22 20:42:14 +00:00
return err
}
return nil
}