mirror of
https://github.com/thebaer/cdr.git
synced 2024-11-15 01:31:01 +00:00
30 lines
381 B
Go
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)
|
|
}
|
|
}
|