1
0
mirror of https://git.sr.ht/~adnano/kiln synced 2024-11-08 14:19:20 +01:00
kiln/main.go

26 lines
329 B
Go
Raw Normal View History

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