mirror of
https://git.sr.ht/~adnano/kiln
synced 2024-10-30 01:13:08 +00:00
26 lines
329 B
Go
26 lines
329 B
Go
package main
|
|
|
|
import (
|
|
"log"
|
|
)
|
|
|
|
func main() {
|
|
if err := run(); err != nil {
|
|
log.Fatal(err)
|
|
}
|
|
}
|
|
|
|
func run() error {
|
|
site, err := LoadSite("src")
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if err := site.Manipulate(site.Directory); err != nil {
|
|
return err
|
|
}
|
|
if err := site.Write("dst"); err != nil {
|
|
return err
|
|
}
|
|
return nil
|
|
}
|