update third party dependencies

This commit is contained in:
MaysWind
2020-11-12 01:01:27 +08:00
parent bd6093e20e
commit 8fe600ce1a
8 changed files with 63 additions and 71 deletions
+21 -15
View File
@@ -1,30 +1,36 @@
package main
import (
"log"
"os"
"github.com/urfave/cli"
"github.com/urfave/cli/v2"
"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 := &cli.App {
Name: "lab",
Usage: "A lightweight account book app hosted by yourself.",
Version: LAB_VERSION,
Commands: []*cli.Command{
cmd.WebServer,
cmd.Database,
},
Flags: []cli.Flag{
&cli.StringFlag{
Name: "conf-path",
Usage: "Custom config `FILE` path",
},
},
}
app.Run(os.Args)
err := app.Run(os.Args)
if err != nil {
log.Fatalf("Failed to run lab app with %s: %v", os.Args, err)
}
}