1
0
mirror of https://github.com/thebaer/cdr.git synced 2024-11-15 01:31:01 +00:00
cdr/cmd/cdr/main.go
Matt Baer 2246bed69b Add static site generation
Run `cdr burn` to create an index.html file in the current directory.
2020-02-26 00:17:28 -05:00

30 lines
381 B
Go

package main
import (
"log"
"os"
"github.com/urfave/cli"
)
func main() {
app := &cli.App{
Name: "CD-R 700MB",
Usage: "A static mixtape site generator",
Version: "v1.0",
Flags: []cli.Flag{},
}
app.Commands = []*cli.Command{
&cmdGenerate,
&cmdServe,
&cmdClean,
}
err := app.Run(os.Args)
if err != nil {
log.Println(err.Error())
os.Exit(1)
}
}