finstr/cmd/finstr.go

23 lines
469 B
Go
Raw Normal View History

2019-01-01 19:31:14 +01:00
package main
import (
"fmt"
"os"
2024-06-18 22:39:16 +02:00
"git.fireandbrimst.one/aw/finstr"
"git.fireandbrimst.one/aw/finstr/initer"
goutil "git.fireandbrimst.one/aw/goutil/misc"
2019-01-01 19:31:14 +01:00
)
func main() {
commands := []goutil.Command{
goutil.NewCommandWithFlags("init", initer.Command, "initialize finstr directory"),
goutil.NewCommandWithFlags("gen", finstr.Command, "generate gallery"),
}
err := goutil.Execute(commands)
if err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
}