finstr/cmd/finstr.go

22 lines
438 B
Go
Raw Normal View History

2019-01-01 19:31:14 +01:00
package main
import (
"fmt"
"git.gutmet.org/finstr.git"
"git.gutmet.org/finstr.git/initer"
"git.gutmet.org/goutil.git"
"os"
)
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)
}
}