add models / services / handlers of user / token / 2fa, add web server command

This commit is contained in:
MaysWind
2020-10-17 20:01:24 +08:00
parent c9ae001aef
commit 60c31e8894
18 changed files with 1649 additions and 2 deletions
+30 -1
View File
@@ -1 +1,30 @@
package lab
package main
import (
"os"
"github.com/urfave/cli"
"github.com/mayswind/lab/cmd"
)
const LAB_VERSION = "0.1.0"
func main() {
app := cli.NewApp()
app.Name = "lab"
app.Usage = "A lightweight account book app hosted by yourself."
app.Version = LAB_VERSION
app.Commands = []cli.Command{
cmd.WebServer,
cmd.Database,
}
app.Flags = []cli.Flag{
cli.StringFlag{
Name: "conf-path",
Usage: "Custom config `FILE` path",
},
}
app.Run(os.Args)
}